You are here: Re: Form: GET works but POST doesnt!? « HTML « IT news, forums, messages
Re: Form: GET works but POST doesnt!?

Posted by Nico Schuyt on 10/20/06 04:59

Steven Saunderson wrote:
> Chris F.A. Johnson

> [snip]
>> Does the script that is targeted (0scripts/invite.php) support the
>> POST method?

> To expand on what Chris says, GET variables are in the _GET array
> whereas POST variables are in the _POST array. If you want to get
> them from either array try something like :
> function GetFormValue ($key, $default = '')
> {
> if (array_key_exists ($key, $_POST))
> return $_POST [$key];
> if (array_key_exists ($key, $_GET))
> return $_GET [$key];
> return $default;
> }

Or: extract($_POST);
But isn't that a safety risc? I prefer $var=$_POST['var'];

--
Nico Schuyt
http://www.nicoschuyt.nl/

 

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

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