At 06:28 PM 8/27/2003 -0400, you wrote:
>I have a form in which is based on a query.
>Each item in a form represents a record in the query
>
>My question is when I submit the form how do I access the value of the named
>field ?
>
>Code example
>
><cfoutput query="getfilecats">
>        <li>
>              <input type='text' name='order+#getfilecats.id#' size='1'
>maxlength='4' value='#getfilecats.sortorder#'>

You mean, on the other end, how do you pull out the "31" from "Order+31"?
Since you know how many chars the "Order+" part is, just do

Right(fieldnamevariable, Len(fieldnamevariable) - 6)

to get what's left. That's assuming you're looping over form.fieldnames and 
only pulling the ones that start with "Order+".

Plus, I don't know that a plus sign is a valid character for a form field 
name... I'd suggest using an underscore instead. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Reply via email to