RE: [PHP] Passing Form Values

From: Date: Wed, 26 Jun 2002 00:50:48 +0000
Subject: RE: [PHP] Passing Form Values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103865@lists.php.net to get a copy of this message
Window.open('http://www.example.com/file.php?id=<?=$id?>&something=<?=$f oo?>'); Or, if you're doing it with a form, do it all in javascript Function new_window() { query_string = 'id=' . document.myform.id.value + '&something=' + documents.myform.something.value'; url = 'http://www.example.com/file.php?' + query_string; window.open(url); } I'm not a JS expert, so take the above as pseudo code... ---John Holmes... > -----Original Message----- > From: Phillip S. Baker [mailto:phillip@freewolf.net] > Sent: Tuesday, June 25, 2002 6:57 PM > To: PHP Email List > Subject: [PHP] Passing Form Values > > Greetings All, > > Another question for today. > > I have a form. > When the form is submitted I want to values passed to a pop-up window. > I am aware of the need for Javascript for the pop-up window, but how do I > get the values from the form passed to the new window so I can use them in > further scripts. > I can write the javascript to do the popup window and use the onSubmit > command, but I cannot figure out how to pass the values with a regular > submit button. > Thanks > > Phillip > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#103865) next »