How can i hide these errors,
for example:
$name = $_POST['name'];
$primary = $_POST['Primary'] ;
if ($primary=='') $primary='OFF';
$alliance = $_POST['Alliance'] ;
if ($alliance=='') $alliance='OFF';
$tournament = $_POST['Tournament'] ;
if ($tournament=='') $tournament='OFF';
$limited = $_POST['Limited'] ;
if ($limited=='') $limited='OFF';
$FFA = $_POST['FFA'] ;
if ($FFA=='') $FFA='OFF';
There is my code, $name is always entered so i dont need to check for it, all the others are information for check boxes (checked or unchecked) if unchecked there is no information, so how do i stop the annoying error coming up when the PHP tries to retrieve info from the POST taht doesnt exist... i have tried
(if $_POST['FFA']) $FFA=$_POST['FFA'];
but i get the same errors.. is there a way of either storing the errors as a variable (and then ignoring them) or perhaps telling the $_POST command not to return errors?
Cheers guys (and gals)
James
for example:
$name = $_POST['name'];
$primary = $_POST['Primary'] ;
if ($primary=='') $primary='OFF';
$alliance = $_POST['Alliance'] ;
if ($alliance=='') $alliance='OFF';
$tournament = $_POST['Tournament'] ;
if ($tournament=='') $tournament='OFF';
$limited = $_POST['Limited'] ;
if ($limited=='') $limited='OFF';
$FFA = $_POST['FFA'] ;
if ($FFA=='') $FFA='OFF';
There is my code, $name is always entered so i dont need to check for it, all the others are information for check boxes (checked or unchecked) if unchecked there is no information, so how do i stop the annoying error coming up when the PHP tries to retrieve info from the POST taht doesnt exist... i have tried
(if $_POST['FFA']) $FFA=$_POST['FFA'];
but i get the same errors.. is there a way of either storing the errors as a variable (and then ignoring them) or perhaps telling the $_POST command not to return errors?
Cheers guys (and gals)
James