Webmaster Forum JustHost  E-junkie  Dreamhost
Register FAQ Search Today's Posts Mark Forums Read
Go Back   Webmaster Forum > Webmaster Forum > Web Development > PHP > php mail() validation
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-22-2010, 09:07 AM
New Member
 
Join Date: Mar 2010
Posts: 2
ststacytucker9 is on a distinguished road
iTrader: (0)
Default php mail() validation


Dear Guest, please register and confirm your
account to remove these advertisements.
Hello friends please can any one help me how where mail() validation put in this code for short form.

Code here:-

PHP Code:
<?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
{
//send email
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail("info@yoursitesite.com", "$subject",
$message, "From: $email" );
echo "Thank you for using our mail form";
}
else
//if "email" is not filled out, display the form
{
echo "<form method='post' action='inquiry.php'>
Email: <input name='email' type='text' /><br />
Subject: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>";
}
?>
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yahoo Mail Integrates Drop.io To Send 100MB Attachments Wallace Yahoo 0 09-13-2009 07:39 AM


All times are GMT. The time now is 04:20 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright ©2011 WebmasterCrunch.com, all rights reserved. A part of Coltter.
Hosting by DreamHost. DreamHost offers unlimited disk storage, unlimited monthly bandwidth, and a free domain for life, all for only $8.95 a month!
Use coupon code HOST45 for a free life-time domain and unique IP address.