|
Posted by Michael Fesser on 11/27/07 13:13
..oO(Michael Martinek)
>> dunno why before didn't work
>>
>> Tks a lot, nik
>
>If the page is submitted with a POST method, then your values will be
>available in $_POST. If it's submitted with a GET, or blank method
>then the values will be available in $_GET.
The 'action' URL in a POST form may also contain a query string, so the
script would receive both GET and POST data.
>In most cases, you can
>just use $_REQUEST, which will access $_GET, $_POST, $_COOKIE globals.
In most cases using $_REQUEST is a really bad idea, since you don't know
where your data is coming from.
If you expect a URL parameter, use $_GET. If you want to access a cookie
value, use $_COOKIE etc. $_REQUEST is useful only in very rare cases.
Micha
Navigation:
[Reply to this message]
|