usky1
asked on
Submit from list
I have a loop query that I need to submit the value from the selected value.
For example if the query comes back with 20 rows of information and I select the 5 row. it always gives me the result from the first row. How can I get it to supply the customer_no for the the one I selected?
<table border=0>
<cfloop query="getSupplies">
<cfoutput>
<tr>
<td height="24"><input name="customer_no" value="Continue" type="submit">#getSupplies .customer_ no# - #getSupplies.ship_to# - #getSupplies.scity# - #getSupplies.sstate#</a></ td>
</tr>
<input type=hidden name="customer_no" value="#getSupplies.custom er_no#">
</cfoutput>
</cfloop>
</table>
For example if the query comes back with 20 rows of information and I select the 5 row. it always gives me the result from the first row. How can I get it to supply the customer_no for the the one I selected?
<table border=0>
<cfloop query="getSupplies">
<cfoutput>
<tr>
<td height="24"><input name="customer_no" value="Continue" type="submit">#getSupplies
</tr>
<input type=hidden name="customer_no" value="#getSupplies.custom
</cfoutput>
</cfloop>
</table>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked great.
ASKER
Thanks for the quick reply and solution.
when you click the submit, the value gets assigned into that field and submitted