I've this page:
prova.php
<?php if (empty ($a)) { echo "<a href=\"prova.php?a=3\">go</a>"; } else { echo $a; } ?>
When the page shows "go", I click over and the page shows "go" again...
Why the parameter doesn't pass whit GET method, in url?
Problem with your server and/or browser.
Your script worked fine for me.
-Ben
try replacing the $a variable with $HTTP_GET_VARS['a']
Your server probably does not have <i>register_globals</i> set in the configuration; see:
http://www.php.net/manual/en/configuration.php#ini.register-globals
You don't have to have this on if you use the method that Chris describes, above.
-- Rich