Undefined Index
Posted: Sat Jan 25, 2003 9:18 am
I have a form where there are 3 checkboxes. When the form is sent to the script i get this error for the boxes that are not checked:
This is what the script looks like:Notice: Undefined index: logodesign in D:\bestill.php on line 24
Notice: Undefined index: visittkort in D:\bestill.php on line 25
Anyone?$to = "zeceer@hotmail.com";
$subject = "Order";
$headers = "zeceer@hotmail.com";
$body =
"Kontakt Informasjon"."\n\n".
"Navn: ".$_POST['navn']."\n".
"Adresse: ".$_POST['adresse']."\n".
"Postnummer: ".$_POST['postnummer']."\n".
"Sted: ".$_POST['sted']."\n".
"Telefonnummer: ".$_POST['telefonnummer']."\n".
"E-mail: ".$_POST['email']."\n\n".
"Tjeneste Valg"."\n\n".
"Logodesign:".$_POST['logodesign']."\n".
"Visittkort:".$_POST['visittkort']."\n".
"Web Banner:".$_POST['webbanner']."\n\n".
"Kommentar"."\n\n".
$_POST['kommentar'];
mail($to,$subject,$body,"From: $headers");