I have two documents. I"m just trying to validate one form. I want the error message to pop up but it's not. How do I do that for my code?
Document 1 "test.php"
<?php
@$fname=$_GET["fname"];
@$fnameerror=$_GET["fnameerror"];
?>
<html>
<h1>Entry Form </h1>
</html>
<?php
if...
I have two documents and I want to validate the drop down menu so that there is one option selected and if they didn't select an option, then an error message appears beside the drop down menu.
Document 1"crazy.php":
<?php
$school=$_GET["school"];
if (isset($school))
$error="*";
else...
<p><select name="Year">
<?php
for ($i=2000; $i<=2012; $i++)
echo "<option value=".i.">".$i."</option>";
?>
<select>
I thought itwould be something like this...but idk!