max_w1 Posted March 12, 2008 Share Posted March 12, 2008 hi i want to send Variables through GET but it is displaying the variable itself. i am trying to do something like this. <?php $name = "value"; header ('Location: page.php?value=$name'); exit(); ?> but when i try to echo the value it displays "$name" Pleaseeeeeeeee help!!!!! Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 12, 2008 Share Posted March 12, 2008 Variables are not evaluated when enclosed in single quotes, use double quotes instead or concatenation. <?php $name = "value"; header ("Location: page.php?value=$name"); exit(); ?> Ken Quote Link to comment Share on other sites More sharing options...
max_w1 Posted March 12, 2008 Author Share Posted March 12, 2008 Thanks kenrbnsn! it worked!!! thankyou very much!!!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.