initialize variables
| From: | Wade | Date: | Tue, 14 Jan 2003 04:25:35 +0000 |
| Subject: | initialize variables | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17840@lists.php.net to get a copy of this message | ||
01132003 2014 CST
Ok. Im so happy that you guys explained the $_POST thing to me. Just implementing that in every tutorial after that worked.
Now, I have another problem.
This, again, is right out of the book. Everything in this book is in <?php tags. This code brings up a blank page. When you look at the source code through the browser all you see is <html><head></head></html>. What is it that I cannot see and my book will not tell me?
Wade
***************
<html>
<head>
<title>Charlies Menu</title>
</head>
<body>
<?php
$Entrees=array("Steak ($9)", "Pizza ($7)", "Pasta ($6)");
echo "<form method="POST" action="menu2.php">"
echo "Which of the following would you like as an entree?";
echo "<select name='ListBox1'>";
echo "<option selected value=' '>Select...</option>";
echo "<option>$Entrees[0]</option>";
echo "<option>$Entrees[1]</option>";
echo "<option>$Entrees[2]</option>";
echo "</select><br><br>";
echo "<input type="submit">";
echo "</form>";
?>
</body>
</html>