<?
if($HTTP_POST_VARS['submit']) {
echo "Thanks for your participation.";
}
else {
?>
<form action="mailer.php" method="post">
<select name="sendto">
<option value="Brent Howard">Brent Howard</option>
<option value="Webmaster">Webmaster</option>
</select><br />
Your Email Address:<br />
<input type="text" name="sender" width="25" maxlength="60"><br />
Subject:<br />
<input type="text" name="subject" width="25" maxlength="60"><br />
Message:<br />
<textarea name="message" rows="10" cols="40"></textarea><br />
<input type="checkbox" name="mailinglist" checked>Include me in your mailing list.<br />
<input type="submit" name="submit"><input type="reset">
</form>
<? } ?>
This form exists on a page called mailer.php. Upon submitting it returns to itself where some logic decides what to do. Blah blah blah..
If you access this page from a different page, you get a Notice: at the top. Is there anyway to keep PHP from printing these damn notices to a page or is there a better method of coding this so I don't get a warning?