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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]