I have a piece of code that hits a cfc to grab data and
information from a third party service.
What I need to be able to do is to somehow loop thru form
values that are passed to generate each unique arrayAppend.
So far I know of a numeric vs. string issue. It needs to be
of numeric value (weight). As well as the shiptopostalcode needs to
be coming from form.shippingZip. Any nudge in the right direction
would be most helpful.
If I'm understanding your description and code properly, it
looks like you want to loop over the weightList form field and call
the arrayAppend function for each value in the string.
When you submit an HTML form that contains multiple elements
of the same name the values are sent as one variable with the
values delimited by a comma. This is a great time to use the CFLoop
tag with the comma as a delimiter, which is the default in CF.