>Yes you can! Here are two forms, form1 and form2, with the different >text inputs: > ><form name="form1" action="index.cfm" method="post"> ><input name="var1" type="text" value="value for form1" /> ><button name="frm1Button" type="submit">Launch form 1</button> ></form> ><hr /> ><form name="form2" action="index.cfm" method="post"> ><input name="var1" type="text" value="value for form2" /> ><input type="hidden" name="onlyForm2" value="any value" /> ><button name="frm2Button" type="submit">Launch form 2</button> ></form> ><cfdump var="#form#" /> > >Even though both forms have a text input with the same name of VAR1, >when you submit a form, only the value for that form's VAR1 is submitted. > >You can have different form elements too, like form2 has a hidden >variable called "onlyForm2".
Thanks Rex for the quick reply. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5638 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
