insteadof using a list, dynamically name your input forms, then in your
cfoutput, u can output those forms.

like #Form.Question1# #Form.Remark1#
#Form.Question1# #Form.Remark1#

----- Original Message -----
From: han peng <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Tuesday, March 13, 2001 4:32 AM
Subject: cfloop for 2 list?!!!


> hi.. i hav a prob. here. i hav a tool to key in remarks for mulitple
users.
> Eg. Page1.cfm
>
>  <form action="page2.cfm" method="post">
>   <cfloop query="part_info">
>     <textarea cols="20" rows="2"
name="p_arrival_remarks">#p_arrival_remarks#</textarea>
>     <input type="hidden" name="p_username" value="#part_info.p_username#">
>   </cfloop>
>  <input type="submit" value="Submit" >
> </form>
>
> So in page2.cfm...
> how can i insert the remarks into the database using the respective
username.??
>
> i cant use <cfloop INDEX="test" LIST="??!!">
> as it can only use for 1 list...
>
> another prob.. i try CFOUTPUT the 2 list...
#p_username#,#p_arrival_remarks#
> and notice that if theres no input for remarks.. both list length doesnt
match..
>
> any advice how i shld go abt doing it?!!
>
> thanx in advance,
> han
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to