RE: [PHP-DB] PHP-Javascript

From: Date: Wed, 23 May 2001 08:43:37 +0000
Subject: RE: [PHP-DB] PHP-Javascript
Groups: php.db 
Request: Send a blank email to php-db+get-9562@lists.php.net to get a copy of this message
you are trying to use a php header to redirect... there is no need, just do it via javscript, and keep your variables where they belong :) <script language="javascript"> var id; uid = prompt("Enter your ID","Your ID"); document.location.href = 'ndex.php?uid=' + uid; </script> easy :) // -----Original Message----- // From: vipin chandran [mailto:whoosh_vc@postmark.net] // Sent: Wednesday, 23 May 2001 2:11 PM // To: php-db@lists.php.net // Subject: [PHP-DB] PHP-Javascript // // // Hi, // Is there any method by which I can attach a javascript variable to a // query string.See the following.. // <script language="javascript"> // var id; // uid = prompt("Enter your ID","Your ID"); // </script> // <? // print header("Location: index.php?id=".<this is where I should have // the js variable uid>); // ?> // Please solve this. // Thanx. // // vipin chandran // whoosh_vc@postmark.net // // // -- // PHP Database Mailing List (http://www.php.net/) // To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net // For additional commands, e-mail: php-db-help@lists.php.net // To contact the list administrators, e-mail: // php-list-admin@lists.php.net //

« previous php.db (#9562) next »