Hi,
I'm trying to figure out what the accepted way of using Query Strings is in PHP. Consider this example:
<?php
//code in somepage.php
echo $var1;
echo &var2;
?>
Now, this code will not work if register_globals is Off, as is reccomended. So, is there a secure way to use query strings, or should they be avoided altogether, in favor of session variables?
I'm trying to figure out what the accepted way of using Query Strings is in PHP. Consider this example:
<?php
//code in somepage.php
echo $var1;
echo &var2;
?>
Now, this code will not work if register_globals is Off, as is reccomended. So, is there a secure way to use query strings, or should they be avoided altogether, in favor of session variables?