Select Categories Below
Advertisement
Start Your Own Q&A Site
Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.
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.
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
I don't have AOL browser but privacy scan shows hundreds of files/cookies fro...
wireless keyboard has stopped working
need validation controller for textbox in java
Advanced Word to Pdf Converter (Word Document formats)
im stuck on safe mode cant get normal mode to work.
I need help getting my internet to work after I disabled start up programs on...
You have 100 characters to use
Rank
Expert
Points
1.
10279
2.
6493
3.
5596
4.
4848
5.
3487
6.
2840
7.
2770
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