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
Php input select function error how to rectify this error?
Moderator: General Moderators
Re: Php input select function error how to rectify this erro
Okay. I charge $50 per hour with a 2 hour minimum. Will that be PayPal or a money order?ptgok wrote:have problem in the following coding. Please correct it.