Hi

I have just reinstalled my win2k system and installed the latest version of
PHP (4.06), now when I run a lot of my old scripts I get errors like the one
below, when I access the page before posting any data to it.  The example
below is taken straight from a tutorial site.  I'm not sure if this is a
change in PHP since 4.01 which I had been using or what ?

Can anyone help please ?!

Thanks

Phil

Warning: Undefined variable: name in u:\inetpub\wwwroot\php\form5.php on
line 7



<html>
<body><h1>My Example Form</h1>
<form action="form5.php" method="POST">
Name: <input type="text" name="name">
Age: <input type="text" name="age">
</form>
<?if($name):?>
Hi <?echo $name?>, you are <?echo $age?> years old
<?endif?>
</body></html>





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to