I'm teaching myself php and I'm using the "Core PHP" book. I am running PHP4/Apache/Netscape4.7. When I run this:
<form action="21-5.php" method="post">
Your Name:
<input type="text" name="YourName"><br>
Cost of a Lunch:
<input type="text" name="CostOfLunch"><br>
Days Buying Lunch:
<input type="text" name="DaysBuyingLunch"><br>
<input type="submit" name="x" value="Compute">
</form>
and press "Compute" against this:
<?
/
** print today's date
/
print("<H3>$Today</H3>\n");
/*
** print message about lunch cost
*/
print("$YourName, you will be out ");
print("$CostOfLunch * $DaysBuyingLunch");
print(" dollars this week.<br>\n");
?>
I get a Server Error. I've tried several times (10).
If I call 21-5.php by itself it comes up, but not if the other action calls it.
Where am I screwing up?
Thanks,
brad