Hi,
I built an html form with 4 checkboxes and I retrieve their status in PHP script as followed:
$ma=$GET['mtal'];
$my=$GET['mty'];
$mn=$GET['mtn'];
$mf=$GET['mtf'];
If the boxes are pressed I receive the checked value, but if one of the buttons is not pressed I receive an error: e.g. “Notice: Undefined index: mtn in C:\httpd\HTDOCS\show.php on line 38”.
How can I avoid this error?
Thanks