Re: Insert record using a var - basic question :(
- From: Michael Fesser <netizen@xxxxxx>
- Date: Tue, 27 Nov 2007 14:13:16 +0100
..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
.
- References:
- Insert record using a var - basic question :(
- From: nicemotion
- Re: Insert record using a var - basic question :(
- From: Michael Fesser
- Re: Insert record using a var - basic question :(
- From: nicemotion
- Re: Insert record using a var - basic question :(
- From: Michael Martinek
- Insert record using a var - basic question :(
- Prev by Date: Re: Insert record using a var - basic question :(
- Next by Date: php ajax redirect
- Previous by thread: Re: Insert record using a var - basic question :(
- Next by thread: newbie: which editor to choose?
- Index(es):
Relevant Pages
|