Override a form action

admin

Administrator
Staff member
Hi all,<br />
I have a question on my form. I have a form with <form action="cgi-bin/firewxdata.cgi" method="get" name="Fire_Wx_Data" id="Fire_Wx_Data"> Now this form has a lot of menus in it and upon selecting one or a combination of it will send you to the cgi script that a friend wrote for me. I am learning PHP and trying to eliminate the cgi scripts. So I have one menu option that I want to replace with a static link, myscript.php However if I just put the url in the option value it still send it to the cgi script and it of course reports an error. How can I make it so that if just this one option is chosen, it goes to the page and not the cgi script?<br />
<br />
Shayne<!--content-->use a seperate form just for that one.<!--content-->When the option is selected just call a function that does this:<br />
<br />
document.forms[0].action='myscript.php';<br />
document.forms[0].submit()';<br />
<br />
<br />
Cd&<!--content-->
 
Back
Top