You are here: Re: getting data out of <FORM> in php variable « PHP Programming Language « IT news, forums, messages
Re: getting data out of <FORM> in php variable

Posted by Dave on 06/14/05 05:21

Domestos (never.you@mind.net) decided we needed to hear...
> Hi all - please help...
>
> using <FORM> HTML tag for user input and need to get get data from it and
> store in php variable...
>
> <input type="text" name="user_name" size="18" maxlength="16"
> class="input_left" tabindex="11" />
>
>
>
> using the following to try and get user_name, but $user_name comes back
> blank...
>
> $user_name=$HTTP_POST_VARS['user_name'];

What is the method attribute set to in your form tag? It should be set
to 'post' and defaults to 'get' if you don't specify it.

As an aside you should really be using $_POST instead of
$HTTP_POST_VARS which is deprecated.
--
Dave <dave@REMOVEbundook.com>
(Remove REMOVE for email address)

 

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

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