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

From: Date: Mon, 25 Nov 2002 15:31:59 +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-125937@lists.php.net to get a copy of this message
Hello, "Monty" <monty3@hotmail.com> wrote: > 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? I think one way you can try is to use JavaScript's onClick() with submit.form. There was a discussion on a similar subject ("passing js values to php") not long time ago. Maybe you can check the archives... But, what if JavaScript is turned off? - E

« previous php.general (#125937) next »