|
|
| |||||||
| roScripts related discussions If there's anything that you hate, love or wish seing please say it here. |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member Join Date: Jul 2008
Posts: 1
Rep Power: 0 ![]() | Hello everyone, First of all, i would like thank you for your great ajax_email script it work prefect. Sorry my english is not very good I am very new in scripting,i trying to add more input but i getting error. For example this form:- Code: Family Name Given Name Date Of Birth Address Phone Email Qualification Course Chosen Name Of University Course Duration Mauritius Address If Any Contact Person In Mauritius Code: <body>
<div id="log">
<div id="log_res">
<!-- spanner -->
</div>
</div>
<form id="myForm" action="send.php" method="get" name="myForm">
<div id="form_box">
<div>
<p>
First Name:
</p><input type="text" name="first_name" value="" />
</div>
<div>
<p>
Last Name:
</p><input type="text" name="last_name" value="" />
</div>
<div>
<p>
E-Mail:
</p><input type="text" name="e_mail" value="" />
</div>
<div>
<p>
Message:
</p><textarea name="message" cols="40" rows="5"></textarea>
</div>
<div class="hr">
<!-- spanner -->
</div><input type="submit" name="button" id="submitter" /></div>
</form>
</body> Code: <?php
error_reporting(E_NOTICE);
function valid_email($str)
{
return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE;
}
if($_POST['first_name']!='' && $_POST['last_name']!='' && $_POST['e_mail']!='' && valid_email($_POST['e_mail'])==TRUE && strlen($_POST['message'])>30)
{
$to = 'youremail@yourdomian.com';
$headers = 'From: '.$_POST['e_mail'].''. "\r\n" .
'Reply-To: '.$_POST['e_mail'].'' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$subject = "Hello! I'm testing my new ajax email that I got from roscripts.com";
$message = htmlspecialchars($_POST['message']);
if(mail($to, $subject, $message, $headers))
{//we show the good guy only in one case and the bad one for the rest.
echo 'Thank you '.$_POST['first_name'].'. Your message was sent';
}
else {
echo "Message not sent. Please make sure you're not
running this on localhost and also that you
are allowed to run mail() function from your webserver";
}
}
else {
echo 'Please make sure you filled all the required fields,
that you entered a valid email and also that your message
contains more then 30 characters.';
}
?> Help will be much appreciate. Thank Vinix |
| | |
| Sponsored Ads | #1.5 |
| Sponsored posting Join Date: The beginning
Posts: lots
| Sponsored by... WM Media - Sell Your Website at above market prices!
|
| |
| | #4 (permalink) |
| Junior Member Join Date: Sep 2008
Posts: 1
Rep Power: 0 ![]() | Good~ Very good~
__________________ To wow power leveling,are you? |
| | |
| | #5 (permalink) | |
| Junior Member Join Date: Aug 2008
Posts: 14
Rep Power: 0 ![]() | Quote:
PHP mail(); Parsed in 0.005 seconds | |
| | |
| | #6 (permalink) |
| Junior Member Join Date: Sep 2008
Posts: 11
Rep Power: 0 ![]() | bump up then lurk -------------------------------------------------------------wow power leveling..wow power leveling..Cheap WoW Gold..WoW Gold..World Of Warcraft gold,
__________________ WoW Power Leveling |
| | |
| | #7 (permalink) |
| Member Join Date: Oct 2008
Posts: 54
Rep Power: 1 ![]() | Octobe 30, 2008 - MMOinn research centre has just developed the world's buy wow gold which can significantly increase the future output of wow gold . "It is real, the new hybrid gold will give us around 40 billion more gold every week," said an expert. The hybrid gold rice may end up replacing all the Wow power leveling in a few months. A new revolution will sweep over the gold farming industry and bring us the ultimate abundance of Cheap wow gold .
__________________ get cheap wow gold here right now!!! |
| | |