Click to See Complete Forum and Search --> : Submitting to different scripts
jeremaitland
09-30-2003, 09:40 PM
PLEASE HELP!!!!!!
I have 8 classes and each class has a folder to where information that they submit is posted, and each class has a different script there information goes to but what i want is one form page to fill out but depending on what class they select from a drop down menu is depending on what script it goes to
<form action="" name="formObj"><div>
<select size="1" name="selObj" onChange="this.form.action=this.options[this.options.selectedIndex].value;">
<option value="" selected>--SELECT CLASS #--</option>
<option value="class1.php">Class #1</option>
<option value="class2.php">Class #2</option>
<option value="class3.php">Class #3</option>
</select>
</div></form>
[J]ona
jeremaitland
10-01-2003, 02:33 PM
Thanks for the help but I tried it and it doesn't work
It should work... You will see no effect, but if you change the class1.php, class2.php, etcetera to the files that would be in the action for that class number, it will work fine.
[J]ona
Charles
10-01-2003, 03:37 PM
Originally posted by Jona
It should work...But you'll need to provide a default value for the FORM's action attribute, the address of one more script that redirects to the proper other script, so that people without JavaScript can still use your site.
Originally posted by Charles
But you'll need to provide a default value for the FORM's action attribute, the address of one more script that redirects to the proper other script, so that people without JavaScript can still use your site.
Yah, I should have said that. :)
[J]ona
jeremaitland
10-02-2003, 02:09 PM
Ok Thank You Very Much i got it to work