PHP script and new window.

From: Date: Mon, 23 Apr 2001 22:25:35 +0000
Subject: PHP script and new window.
Groups: php.general 
Request: Send a blank email to php-general+get-49947@lists.php.net to get a copy of this message
I have searched high and low for thos but with no luck. Hopefully someone will give me some good pointers. I have a poll on a page that I am building which uses php. I would like to have a new window open when the submit and view results links are selected. I am using an onClick and the view results window works fine. It is the submit button I am having trouble with. The new window won't populate with any info. Here is the form that I have on my page <form method="post" action="vote.php"> <div class="pollTitle"><? echo $question; ?></div> <div class="pollResponse"> <input type="Radio" name="response" value="1"><? echo $response1; ?><br> <input type="Radio" name="response" value="2"><? echo $response2; ?><br> <input type="Radio" name="response" value="3"><? echo $response3; ?><br></div> <input type="hidden" name="id" value="<? echo $id; ?>"> <font size=-2><a href="#" onClick="window.open('archive.php?id=<? echo $id; ?>','archive','toolbar=no,status=no.location=no,menubar=no,top=50,left=50,he ight=250,width=200,scrollbars=no'); return false;">view results</a></font><br><br> <input type="submit" name="submit" value="Vote" onClick="window.open('http://www.askedagain.com/vote.php','vote','toolbar=no ,status=no.location=no,menubar=no,top=50,left=50,height=250,width=200,scroll bars=no'); return false;"> </form> The vote script works fine as if I just have it load in the current browser window. Is there something that I am missing? Any help and/or ideas are much appreciated. Thanks again. CAA

« previous php.general (#49947) next »