Posted by vdP on 12/09/05 12:48
passat91@sympatico.ca wrote:
> Could somebody tell me.
> I installed php4 successfully, but when I do run some script like the
> following:
> <?
> if(!isset($name)&&!isset($password))
> {
> //Visitor needs to enter a name and password
> ?>
Starting with version 4.2.0, the post-variables are no longer imported
automatically, but are only stored in the array $_POST. To acces the
posted variables you need to use $_POST['name'], $_POST['password'],
etc. Alternatively you can assign the posted variables to normal
variables with something like
$name=$_POST['name'];
Hope this helps.
vdP
[Back to original message]
|