There is such code:
<form action="" method="GET"> <p>html<input type="checkbox" name="lg" value="1"></p> <p>css<input type="checkbox" name="lg" value="2"></p> <p>php<input type="checkbox" name="lg" value="3"></p> <p>javascript<input type="checkbox" name="lg" value="4"></p> <input type="submit"> </form> <?php $str = 'Вы знаете: '; if(isset($_REQUEST['lg']) and $_REQUEST['lg'] == 1) { $str .= 'html.'; } if(isset($_REQUEST['lg']) and $_REQUEST['lg'] == 2) { $str .= 'css.'; } if(isset($_REQUEST['lg']) and $_REQUEST['lg'] == 3) { $str .= 'php.'; } if(isset($_REQUEST['lg']) and $_REQUEST['lg'] == 4) { $str .= 'javascript.'; } echo $str; ?> The problem is that if the user tick a few checkboxes, then only one of the selected ones will be displayed. And it is necessary that everything near which put a tick.
What needs to be added to the code to implement it?