$val = $_GET['yr'];
if ( $val == "" || $val == null )
{
echo "Pls input numbers";
}
else
{
echo "";
}
?>
<html>
<head><title>Leap Year</title>
</head>
<body>
Leap Year Calculation
<form name="form" method="get" action="">
<table border="0">
<tr><td>Enter Year: <input type="text" maxlength="4" name="yr">
<tr><td><center><input type="submit" value="submit">
</form>
</body>
</html>
pls help. i wanna validate only when i press submit. i dont wanna use JS as possible. what happened to my script above is when i load the main page, it validate already the form. I want only to validate when i press the "submit" button.
THANK YOU IN ADVANCE!



