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:[EMAIL PROTECTED]]
// Sent: Wednesday, 23 May 2001 2:11 PM
// To: [EMAIL PROTECTED]
// 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
// [EMAIL PROTECTED]
// 
// 
// -- 
// PHP Database 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]
// 

-- 
PHP Database 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]

Reply via email to