sandycool9999
New member
<form name="Stumarks" action="report.php" method="GET">School: <select name="school" value="<?php echo $school; ?>" /></input><font color="red"><?php echo $schoolerror; ?></font></p>
<option value="blank" >---Select a school---</option>
<option value="Mother Teresa">Mother Teresa High School</option>
<option value="Longfields Davidson Heights">Longfields Davidson Heights Seconday School</option>
<option value="Merivale High School">Merivale High School</option>
</select>
<input type="submit" value="submit"/>
</form>
There's my drop down list form and I want to make it so that if the user does not select one of the options, the data gets sent to the report.php and if there's an error then it gets sent back with an error message beside the form.
<option value="blank" >---Select a school---</option>
<option value="Mother Teresa">Mother Teresa High School</option>
<option value="Longfields Davidson Heights">Longfields Davidson Heights Seconday School</option>
<option value="Merivale High School">Merivale High School</option>
</select>
<input type="submit" value="submit"/>
</form>
There's my drop down list form and I want to make it so that if the user does not select one of the options, the data gets sent to the report.php and if there's an error then it gets sent back with an error message beside the form.