Hello;
I hope someone can offer some assistance.
Have a form that receives a PHP email variable from another page link. I am trying to enter some basic PHP form validation but I am not used to the PHP aspect of form validation.
I need the user to be prompted if there is no informaion in either the subject or message box.
Please help if you can. It is Greatly appreciated.
PHP Code:
<?php $email = $HTTP_GET_VARS['email_to']; //Get the value of the email_to variable in the gif. Might need to use $HTTP_GET_VARS instead of $_GET but try this first ?>
Code:
<form action="mail2.php" method="POST">
<input type="hidden" name="email" value="<?php echo $email; ?>">
<p><b>Subject</b><br>
<input type="text" name="subject" size=50>
<br><br>
<b>Message</b><br>
<textarea cols=40 rows=10 name="message"></textarea><br><br>
<input type="submit" value=" Send ">
</form>
<br><br>
<hr>
</body></center>
</html>
|