|
Posted by dimo414 on 04/02/07 15:22
First off, like JO said, you're thinking in terms of JavaScript, while
working in PHP. $_SESSION is only used for session data, like a user
id - information you set about a visitor that will cary over between
pageviews. $_GET and $_POST are for form data (or in the case of
$_GET, url variables as well). You determine which to use in the
<form> tag of your html. Although $_REQUEST will accomodate both, I
would suggest always using the specific array depending on how you're /
supposed/ to be receiving the data. If you use $_REQUEST, and you're
trying to get POST data, a malicious user could put the same name into
a GET variable and overwrite that index of $_REQUEST.
Navigation:
[Reply to this message]
|