First the code,
<form name="form1" method="post" action="index.cfm">
<select size="1" name="check" onChange="this.form.submit();">
<option value="Phone">Phone</option>
<option value="Televison">Television</option></select>
IF Phone is picked populate second box
<select size="1" name="item" onChange="this.form.submit();">
<option value="Nokia">Nokia</option>
<option value="Motorola">Motorola</option></select>
.................
End if
<input name="Submit" type="button" value="Submit">
</form>
Now here is my problem....to populate the second box I have to submit my form to itself depending on the choice made in the first box, but if the submit button is clicked I need the form to submit to a diffrent page. How do I catch the Submit event so I know the user is trying to submit the form? I am using coldfusion. Thanks a lot for the help.
<form name="form1" method="post" action="index.cfm">
<select size="1" name="check" onChange="this.form.submit();">
<option value="Phone">Phone</option>
<option value="Televison">Television</option></select>
IF Phone is picked populate second box
<select size="1" name="item" onChange="this.form.submit();">
<option value="Nokia">Nokia</option>
<option value="Motorola">Motorola</option></select>
.................
End if
<input name="Submit" type="button" value="Submit">
</form>
Now here is my problem....to populate the second box I have to submit my form to itself depending on the choice made in the first box, but if the submit button is clicked I need the form to submit to a diffrent page. How do I catch the Submit event so I know the user is trying to submit the form? I am using coldfusion. Thanks a lot for the help.