I get cant get my variable to echo on the page even though it shows in the URL. Here is the link that passes it
<a href='eventform.php?$eventname'>
And the code to get it on a other page:
$eventname = 0;
if (isset($_GET['eventname'])) {
$eventname = $_GET['eventname'];
}
echo $_GET['eventname'];
It displays the 0 but not the Mountain 2012 which is in the url at the top. Please help me with this problem
Am i displaying it correctly on the other page?