Re: Sending POST vars to pop-up window - How?

From: Date: Mon, 25 Nov 2002 07:39:32 +0000
Subject: Re: Sending POST vars to pop-up window - How?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125896@lists.php.net to get a copy of this message
Hi there Try this: Leave your form tag as it is. Put a TARGET="_NEW" parameter into your form tag. This should submit the form via POST to a new window. You could then put some javascript into this window's html to resize the window etc. OR when the submit button is clicked, in the onClick( ) method open a new window with javascript. format size toobars etc. Set the form's TARGET value to the new window's name. form.submit( ); I think this could also work. Regards Scott Monty wrote, On 11/25/2002 9:16 AM:
I'm writing a poll app. I want it to work this way:
    1. On web page, user selects choice, clicks VOTE.
    2. Clicking VOTE triggers a pop-up window.
    3. PHP script running in pop-up records vote, displays results.
Problem is, POSTed vars that come from forms aren't available in the popup window if I make the FORM action = javascript:popWin('/poll.php'). Is setting the vote choice in a session var the only way to make this work, or is there a way to pass vars via a form POST to the popup window? Thanks! Monty
-- Scott Houseman Senior Software Developer Junk Mail Publishing (Pty) Ltd T + 27 12 342 3840 ext 2806 F +27 12 342 3876 E scott@junkmail.co.za | www.junkmail.co.za A 1312 Pretorius Street, Hatfield, Pretoria P O Box 6574, Pretoria, 0001, South Africa +27 82 491 8021

« previous php.general (#125896) next »