View Single Post
  #1 (permalink)  
Old February 18th, 2004, 07:14 AM
knight knight is offline
Authorized User
 
Join Date: Feb 2004
Location: Karachi, , Pakistan.
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knight
Default Undefined Variable Some Help!

i m using and testing the code below
---------------------------------
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=POST ACTION="checkbox.php">
Have you ever eaten haggis before?
<INPUT NAME="Choice" TYPE="Checkbox">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML
----------------------------------------
and checkbox.php is as under

<HTML>
<HEAD></HEAD>
<BODY>
<?php
echo $Choice;
?>
</BODY>
</HTML>
----------------------------------------------
the problem is when i click submit button the error

Notice: Undefined variable: Choice in d:\inetpub\wwwroot\php\checkbox.php on line 5

is displayed what is the error please resolve it

thanks


Reply With Quote