novice2004
Programmer
Hi,
When I click on text field I would like to redirect my page to "index_1.php"
but I get "Error on Page".
and by submiting button I would like to to go to "index_2.php".
Thank you.
<form name='myForm' action=\"\" method=post>
setLink_1(form){
form.action="index_1.php";
form.submit();
}
setLink_2(form){
form.action="index_2.php";
form.submit();
}
<input type='text' onKeyPress=setLink_1(myForm) ...
<input type='submit' value='GO' name='submit' onClick=setLink_1(myForm) />
When I click on text field I would like to redirect my page to "index_1.php"
but I get "Error on Page".
and by submiting button I would like to to go to "index_2.php".
Thank you.
<form name='myForm' action=\"\" method=post>
setLink_1(form){
form.action="index_1.php";
form.submit();
}
setLink_2(form){
form.action="index_2.php";
form.submit();
}
<input type='text' onKeyPress=setLink_1(myForm) ...
<input type='submit' value='GO' name='submit' onClick=setLink_1(myForm) />