Parse Errors
| From: | Andy Turegano | Date: | Sat, 14 Dec 2002 22:43:29 +0000 |
| Subject: | Parse Errors | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128302@lists.php.net to get a copy of this message | ||
I am a PHP beginner so this error may be a stupid one. Anyway, I'm
trying to write a simple addition script. The client enters two numbers,
then my script (adder.php) adds them. However, when the script is run, I
get "Parse Error On Line 3" I have no idea exactly what I have done wrong.
Here is the script.
<?
print ("Your first number is:$firstnumber\n")
print ("Your second number is:$secondnumber\n")
$answer=$firstnumber+$second number
echo ("The answer is: $answer\n")
?>
Any help would be greatly appreciated. Thank you.