Hi group -
I have an html form for that uses username and password to login to a
specific area of the website. The "area" the user wants to go to is
based on a pull down menu. Becasue the user/password info is in
differnet databases, how can I call different validation scripts based
on this input ?
THANK YOU!
See below please. Somethinglike this:
form.html:
<form name="loginform " method="post" action="login.p hp">
<select name="loginform ">
<option value="one">Sec tion 1</option>
<option value="two">Sec tion 2</option>
</select>
login.php:
@extract($_POST );
if($_POST[loginform] == "one") {
echo "action = /forums/scc/dispatch.cgi/_admin/AVFLogin"
NAME="LoginForm " >
echo "<input type=hidden name=\"autologi n\" value=\"1\">\n" ;
echo "<input type=hidden name=\"formstyl e\" value=\"standar d\">\n";
echo "<input type=hidden name=\"returnfo rum\" value=\"_admin\ ">\n";
echo "<input type=hidden name=\"returnms g\"
value=\"acahome page\">\n";
} else {
echo "action = /path to different cgi \n";
echo :different values for hidden fields".
}