Posted by Chris B on 06/14/05 01:42
Domestos wrote:
> 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 in both cases...
>
> $user_name=$HTTP_POST_VARS['user_name'];
>
> $user_name=$_POST['user_name'];
>
>
> TIA
The <form> action points to the file those last lines are in?
Is the <form> method set to "post"?
Navigation:
[Reply to this message]
|