Hello, I need a programmer to create a simple script to send all the results of my contact form to my email in th following format: Name: (Input text) E-Mail: (Input Text) Telephone: (Input Numbers) Message: (Input Text) I need it done really fast! Thanks, Nick
in which programming language u want the script. Do u have the contact us form ready? is it working? or you want contact form too? I can do this for you. let me know more information.We can talk about pricing once we discuss the requirements.
step 1: Copy and paste the e-mail Form Code into a 'contact.php' page (must be a html/php page on a server that allows php!). Step 2: Copy n paste the sendeail.php code into a new file. Change the YourEmail section to include your email address. Then check (or modify) the link at the bottom (contact.php) to point to the desired Next Page. Save the file as 'sendeail.php' (as ASCII file). Step 3: Upload both files as ASCII i.e. upload the same way as .html files. Be sure both files are in the same folder on the server. E-mail Form Code (contact.php) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Email Form </title> </head> <body> <form method="post" action="sendeail.php"> <!-- DO NOT change ANY of the php sections --> <?php $ipi = getenv("REMOTE_ADDR"); $httprefi = getenv ("HTTP_REFERER"); $httpagenti = getenv ("HTTP_USER_AGENT"); ?> <input type="hidden" name="ip" value="<?php echo $ipi ?>" /> <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" /> <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" /> Name: <br /> <input type="text" name="visitor" size="35" /> <br /> Email:<br /> <input type="text" name="visitormail" size="35" /> <br /> Telephone:<br /> <input type="text" name="visitortel" size="35" /> <br /> Message: <br /> <textarea name="notes" rows="4" cols="40"></textarea> <br /> <input type="submit" value="Send Mail" /> <br /> </form> </body> </html> Code for sendeail.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Sendemail Script</title> </head> <body> <!-- Reminder: Add the link for the 'next page' (at the bottom) --> <!-- Reminder: Change 'YourEmail' to Your real email --> <?php $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $visitortel = $-post['visitortel']; $notes = $_POST['notes']; $attn = $_POST['attn']; if (eregi('http:', $notes)) { die ("Do NOT try that! ! "); } if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) { echo "<h2>Use Back - Enter valid e-mail</h2>\n"; $badinput = "<h2>Feedback was NOT submitted</h2>\n"; echo $badinput; die ("Go back! ! "); } if(empty($visitor) || empty($visitormail) || empty($visitortel | empty($notes )) { echo "<h2>Use Back - fill in all fields</h2>\n"; die ("Use back! ! "); } $todayis = date("l, F j, Y, g:i a") ; $attn = $attn ; $subject = $attn; $notes = stripcslashes($notes); $message = " $todayis [EST] \n Attention: $attn \n Message: $notes \n From: $visitor ($visitormail)\n TelepHone: $visitortel \n Additional Info : IP = $ip \n Browser Info: $httpagent \n Referral : $httpref \n "; $from = "From: $visitormail\r\n"; mail("YourEmail", $subject, $message, $from); ?> <p align="center"> Date: <?php echo $todayis ?> <br /> Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> ) <br /> Attention: <?php echo $attn ?> <br /> Message:<br /> <?php $notesout = str_replace("\r", "<br/>", $notes); echo $notesout; ?> <br /> <?php echo $ip ?> <br /><br /> <a href="contact.php"> Next Page </a> </p> </body> </html>
Looks like you have the code ready for you self. Do you want us to just place them in appropriate files or some help form us setting your own email address into the code? Its simple. use below code: After this code: $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $visitortel = $-post['visitortel']; $notes = $_POST['notes']; $attn = $_POST['attn']; Add one line of code: $ToEmailAddress = "Your Real Email Address"; e.g. of actual code: $ToEmailAddress = "Nick@yahoo.com"; After that Modify this line: mail("YourEmail", $subject, $message, $from); TO mail($ToEmailAddress, $subject, $message, $from); About creating the files for the code , its again simeple and u can do it by u r self. Just create two files with extension .php and with desired filename. Put the code in appropriate files and upload on the server. Hope this should work for you.
hey mate, did it worked? Don't worry I am not asking any payments , but just wanted to check if it helped you or not.
Add me in MSN from my profile .. I can do it easily ..i have made such kind of script before Myself Archis 4 yr+ experienced programmer .. Regards Archis