Hello! I can not understand. It is necessary that when selecting </option>
, for example, history is checked for another condition, the $predmet
variable is then compared and, if it is, the data is entered into the $page
variable.
<? if ($predmet='history') {($page='vistor');} if ($predmet='english') {($page='rus');} ?> <form action="add.php" method="post" name="form"> <select name="predmet" id="predmet"> <option>history</option> <option>english</option> <input name="page" type="hidden" value="<? echo $page;?>" /> <p> <input name="add" type="submit" value="Добавить" /></p> </form>