Page 1 of 1

Php input select function error how to rectify this error?

Posted: Mon Mar 12, 2012 1:14 am
by ptgok
have problem in the following coding. Please correct it.
<form action="22.php" method="get">
<select id="ab">
<option value="a">A</option>
<option value="b">B</option>
<input type="submit">
</select>
</form>
In 22.php
<?php
echo $_GET["ab"];
?>
Error:
Notice: Undefined index: ab in C:\wamp\www\2\22.php on line 9

Re: Php input select function error how to rectify this erro

Posted: Mon Mar 12, 2012 5:38 am
by requinix
ptgok wrote:have problem in the following coding. Please correct it.
Okay. I charge $50 per hour with a 2 hour minimum. Will that be PayPal or a money order?