|
Posted by passat91@sympatico.ca on 12/10/05 15:13
Wow, I was cracking my head last time figuring out the problem.
This what happend, back in 2002 I was fooling around with php3 wiht all
those code from php and mysql books, well they did parse perfectly.
Now fast forward to 2005 WITHOUT TOUCHING PHP for 3 years, I got into
this problem. WHAT A FITFALL!!!, Yes because I dont program much for a
living.
vdP wrote:
> 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
Navigation:
[Reply to this message]
|