<html> <head> <!--set title--> <title> computers languages </title> </head> <!--show page--> <body> <form action = "<?php echo $_SERVER['PHP_SELF'] ?>" method = "GET"> select your coputer language: <br> <select name = "langs[]" multiple> <br> <option value = "c/c++"> c/c++ </option> <br> <option value = "c#"> c# </option> <br> <option value = "asp.net"> asp.net</option> <br> <option vlaue = "php"> php </option> <br> </select> select your hobby:<br> <input type = "checkbox" name = "hobby[]" value = "running">running <input type = "checkbox" name = "hobby[]" value = "swimming">swimming <input type = "checkbox" name= "hobby[]" value = "football">football <input type = "checkbox" name = "hobby[]" value = "basketball">basketball <br> <input type = "submit" name = "choselang" value = "chose"> <br> </form> <?php if (array_key_exists('choselang', $_GET)) { echo "your computer languages: <br>/n"; foreach($_GET['langs'] as $val) { echo "$val/t"; } echo "<br>/n"; echo "your hobbys: "; foreach ($_GET['hobby'] as $val) { echo "$val/t"; } echo "<br>/n"; } ?> </body> </html>