Php input select function error how to rectify this error?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ptgok
Forum Newbie
Posts: 3
Joined: Mon Mar 12, 2012 1:03 am

Php input select function error how to rectify this error?

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post 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?
Post Reply