passing variable in browser does not work
Im trying to pass a variable from one page to the next, but it is not working correctly. the variable $message is set on the previous page and sent through the url to the next page, but my script bellow is not picking it up for some reason. Any help is appreciated.
<?php
if ($message == "pm") {
echo "Your passwords do not match each other. Please fix this and retry.";
} else if ($message == "pl") {
echo "Your password does not meet the required length. It must be between 6 and 16 characters in length";
} else if ($message == "ul") {
echo "Your Username doese not meet the required length. It must be between 5 and 30 characters in length";
} else if ($message == "ue") {
echo "That username exists. Please try another";
} else {
echo "";
}
?>
redirect from previous page: register.php?message=$warning
When it goes through the redirection it shows up as this in the browser "register.php?message=pm", "register.php?message=pl", "register.php?message=ul", or "register.php?message=ue", but my script above is not picking up that variable for some reason.
