Posted by Oli Filth on 11/13/63 11:30
Ant said the following on 27/10/2005 18:23:
> Howdy,
>
> I'm creating a register form which passes some user values to my php file
> using POST
>
> here's the code:
>
> form name="register" method="post" action="register.php">
> <tr>
> <td>User Name:</td>
> <td><input name="user_id" type="text" value="" size="20"/> </td>
> </tr>
>
I assume that in reality, your HTML isn't this screwed up?
> $user_id = $_POST["user_id"];
>
> but when I echo $user_id nothing appears so I guess the value isn't be
> passed as I woud expect.
>
What version of PHP are you using? Older than PHP 4.1.0, you need to use
$HTTP_POST_VARS.
--
Oli
Navigation:
[Reply to this message]
|