View Single Post
  #3 (permalink)  
Old February 18th, 2004, 11:37 AM
sami sami is offline
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Knight,
I actually think the 'problem' is not really a problem as the error message is saying that you have a variable undefined, which is true as if you don't tick the checkbox the variable is not defined. Whereas if you where to check to see if the variable exists (using the 'isset' function )before you echo out the value, you would not receive the error message, try this:

<?php
if (isset($HTTP_POST_VARS['Choice']))
{
echo $HTTP_POST_VARS['Choice'];
}
?>

You could also remove this sort of error by changing the line:

error_reporting= E_ALL;

to not display all error messages but I don't recommend this in a testing phase.

Hope this helps
Sami
Reply With Quote