Hi guys. Tracy here🙂 How can i pass a variable in the url without the use of the header function? The code below redirects but does not carry over the variable.
echo '<meta http-equiv="refresh" content=0;url=EnterInfo.php?message=$message>';
Well, variables don't parse in single quotes. If you use double quotes it should work, provided $message is set. You could also concatenate it into the echo statement.
Hi again. Once again you are correct. I changed it to double quotes and it works perfect. Hugs for you!! Tracy🙂
And you need quotes around the actual content, since it has non-alphanumeric characters.