<form name= "form" action="form.php" onsubmit="" method="post">
<?php
$errors = 0;
$name = $POST["name"];
?>
<label for="name">Name:</label> <input type="text" name="name" value= <?echo "$name" ?>>
<?php
if ($POST['process'] == 1)
{
if ( $name == "")
{
echo "Please enter an age";
}$errors ++;
if (errors ==0)
{
header("location:results.php");
}
}
?>
<input type="hidden" name="process" value="1">
<p> <class="submit"><input type=submit name="$submit" value=submit ><input type=Reset ></p>
Warning: Cannot modify header information - headers already sent by (output started at C:\indigoperl\apache\htdocs\BLARGHBLARGHH...
AM I NOT CLOSE????? i must be i can print a whoohoo in the space where i put header, i just get this horrid warning - someone must know ??
im trying to make the name field come up with and error message when nothing is inputed and when something is inputed on submit should take you to a results page.