You are here: Re: Insert record using a var - basic question :( « PHP Programming Language « IT news, forums, messages
Re: Insert record using a var - basic question :(

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация