Select Categories Below
Status: Closed Points: 250 Time: 14:09 - Jun 26, 2009
Newbie123
I would like a PHP Contact Form that would be simple for me to edit and use for my business site that runs on windows. Thanks Newbie
Categories:
Add Categories
When adding more than one category, separate them with commas.
Advertisement
Mason
Date:: Jun 26, 2009
Time:: 14:12
Ah i was just going thru my old php files and found this: <?php /* Simple PHP Contact Form By Mason Soiza */ /* Subject and Email Variables */ $emailSubject = 'Program Request'; $webMaster = 'order@elite-coderz.com'; /* Gathering Data Vairables */ $email = $_POST['email']; $name = $_POST['name']; $phone = $_POST['phone']; $budget = $_POST['budget']; $travelers = $_POST['travelers']; $comments = $_POST['comments']; $newsletter = $_POST['newsletter']; $body = <<<EOD <br><hr><br> Email: $email <br> Name: $name <br> Phone Number: $phone <br> Budget: $budget <br> Number Of Travelers: $travelers <br> Comments: $comments <br> Newsletter: $newsletter <br> EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* Results Rendered as HTML */ $theResults = <<<EOD <html> <head> <title>Sent Email</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { background-color: #f1f1f1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; color: #666666; text-decoration: none; } --> </style> </head> <div> <div align="left">Thank you for your interest! Your email will be answered very soon!</div> </div> </body> </html> EOD; echo "$theResults"; ?>
ed
Date:: Sep 15, 2009
Time:: 13:22
Adding a comment about the above in case any one finds this via a search (as i did). Be EXTREMELY cautious with the code above. It has no input validation and using it will at some point turn your server into a spam relay.
Time:: 13:24
"Adding a comment about the above in case any one finds this via a search (as i did). Be EXTREMELY cautious with the code above. It has no input validation and using it will at some point turn your server into a spam relay." Man he asked for a simple contact form and i gave him that
Question Answered
This question has been closed, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.
Answer this Question
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Forgot Your Password?
Enter your email address below and we will resend your login information to you.
Login Information Sent
Questions
Why is my computer running slow and the computer usage at 100% all the time?
Is there a mobile phone that has a usb port ?
I am developing an application to communicate with postilion using ISO 8583 m...
Form builder
Form creator
I want to receive xml data in a web method of web service written in asp.net...
You have 100 characters to use
Rank
Expert
Points
1.
9829
2.
6493
3.
5596
4.
4773
5.
3487
6.
2765
7.
2520
8.
2303
9.
1820
10.
917
Register today to share your knowledge with the community and be recognized and rewarded for your contributions.
Register Here
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
Language Options
English:
Español:
Sponsors
Questions and Answers Software Real Estate Postcards Marketing Fulfillment