note 31405 rejected from language.variables by spic
| From: | spic@php.net | Date: | Sun, 20 Apr 2003 22:40:57 +0000 |
| Subject: | note 31405 rejected from language.variables by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46859@lists.php.net to get a copy of this message | ||
Hi I did this form
<html>
<head>
<title>Bob's Auto Parts</title>
</head>
<body>
<h1>Bob's Auto Parts</h1>
<h2>Order Form</h2>
<form action="11.php" method=post>
<table border=0>
<tr bgcolor=#cccccc>
<td width=150>Item</td>
<td width=15>Quantity</td>
</tr>
<tr>
<td>Tyres</td>
<td align=center><input type="text" name="tyreqty" size=3
maxlength=3></input></td>
</tr>
<tr>
<td>Oil</td>
<td align=center><input type="text" name="oilqty" size=3
maxlength=3></input></td>
</tr>
<tr>
<td>Spark Plugs</td>
<td align=center><input type="text" name="sparkqty" size=3
maxlength=3></input></td>
</tr>
<tr>
<td>How did you find Bob's</td>
<td><select name="find">
<option value = "a">I'm a regular customer
<option value = "b">TV advertising
<option value = "c">Phone directory
<option value = "d">Word of mouth
</select>
</td>
</tr>
<tr>
<td colspan=2 align=center><input type=submit value="Submit
Order"></td>
</tr>
</table>
</form>
</body>
</html>
but when i submit the php file to process the order, the variables just don't show up, and the
select case it chooses is the default one
i mean, it says i didn't buy anything and that "we don't know where did he came
from"
i tried doing a
<?
phpinfo();
echo $tyreqty."<br>";
echo $oilqty."<br>";
echo $sparkqty."</font><br>";
echo $find;
?>
and at the php info I got the variables i inserted.
but still the html file only show echo <br> instead of the variables.
what is wrong ?