11-21-2008, 05:16 AM
|
#14 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
::update::2
PHP Code:
<?php error_reporting(E_ALL); include 'sm_functions.php'; if(isset($_POST['submit'])) { $email = spamcheck($_REQUEST['email']); $message = strip_tags($_REQUEST['message']);
if(empty($email)) { print "</br>You did not put in you're email!"; } if(empty($message)) { print "</br>You forgot to write a message";
/* func_check_email */ if(is_valid_email($email)) { /* Do a valid email check */ print "check done";
} else {
print "please post your real email"; }
/* Do spam check */ } else { if($email==FALSE)
{
echo "Invalid input<br />"; } else {
mail("mailto@gmail.com", "Mail From Site By User!", $message, "From: $email"); print "Thank you for taking an interest in mysite.com"; } } }
?>
<form method="post" action="sendmail.php"> Email: <input name="email" type="text" /><br /> Message:<br /> <textarea name="message" rows="10" cols="30"> </textarea><br /> <input type="submit" name="submit" value="submit"/> </form>
Still a blank page
thoughts ?
|
|
|
|