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

Posted by Steven Saunderson on 10/20/06 04:49

On Thu, 19 Oct 2006 21:56:01 -0400, "Chris F.A. Johnson"
<cfajohnson@gmail.com> wrote:

[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;
}

--
Steven

 

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

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