I have a basic question here not been able to get it right….
I have a ColdFusion form abc.cfm and on submit posts to
<form name="MyForm"
method="post"
action="abc_action.cfm?vempnum=
<cfoutput>#qGetemplookup.emplid#&year=#form.year#</cfoutput>"
Now I have a textbox and a select box and I’m able to get the emplid value on the action page in the url but not able to get the year (which is the select box value)…not sure what I’m doing wrong here. Any help is appreciated.
If I understand the question correctly, you are trying to access
form.yearprior to actually submitting the form that theyearinput exists in. This won’t work because theformscope will only be populated once the form has actually been submitted.Trying to add
form.yearto the URL of the action is actually redundant, because when you do POST the form, the value selected foryearwill be available to you as part of theformstruct.