1st Form:
<form name="FirstForm" action="SecondForm.cfm" method="post" target="new">
<select name="var1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<textarea name="var2" cols="10" rows="10"></textarea>
<input type="checkbox" name="var3" value="test">
<input type="button" value="submit" onclick="document.FirstFor
</form>
SecondForm.cfm
<cfoutput>
var1 = #var1#<br>
var2 = #var2#<br>
var3 = #var3#
</cfoutput>
Note: in some browser, if your checkbox is unchecked, your 2nd page will not get the variable passed. so you should have a <cfparam name="var3" default=""> in place.
Main Topics
Browse All Topics





by: JackfyPosted on 2004-07-22 at 13:38:34ID: 11616529
I'm not quite understand your question.
> The second form is opened into a new window with a button (not a submit button) a button onClick
Where is the button, on the first form?
Is that when you click on the button on the first form, then pass the first forms values into the 2nd form?