jya
December 21st, 2001, 23:27
The following is the sample code, it is for a
simple poll program. The script willl shows
the result once the vote button is pressed
( in the same browser window ).
My qestion is, how can I open up a new window
instead for the result ? So that I can keep the
default page for the existing browser.
-------------------
<form action=poll.php method=post>
What is your favorite programming language?<br>
<input type=radio name=vote value=HTML> HTML<br>
<input type=radio name=vote value=JavaScript> JavaScript<br>
<input type=radio name=vote value=Perl> Perl<br>
<input type=radio name=vote value=PHP> PHP<br>
<input type=submit value=Vote>
</form>
---------------------
simple poll program. The script willl shows
the result once the vote button is pressed
( in the same browser window ).
My qestion is, how can I open up a new window
instead for the result ? So that I can keep the
default page for the existing browser.
-------------------
<form action=poll.php method=post>
What is your favorite programming language?<br>
<input type=radio name=vote value=HTML> HTML<br>
<input type=radio name=vote value=JavaScript> JavaScript<br>
<input type=radio name=vote value=Perl> Perl<br>
<input type=radio name=vote value=PHP> PHP<br>
<input type=submit value=Vote>
</form>
---------------------