Hello, I am creating a simple form requesting name, phone, email and comments. When someone hits submit, I want to have the contents emailed to me, with the output in a tab-delimited file/style so it can be imported into excel. I also want to have a thank you response sent out to the person that submitted to the form? Any ideas on how to do this.. All I have right now is the form page as follows: To be notified of future events and announcements, <br> please fill out the following form and click submit. </span></p> <p class=MsoNormal align=center style='text-align:center'> </p> <table width="431" border="0" align="center"> <tr> <td width="309"><form name="form1" method="post" action=""> <label>First Name: <input name="firstname" type="text" id="firstname"> </label> </form></td> </tr> <tr> <td><form name="form1" method="post" action=""> <label>Last Name: <input name="lastname" type="text" id="lastname"> </label> </form></td> </tr> <tr> <td><form name="form1" method="post" action=""> <label>eMail: <input name="email" type="text" id="email"> </label> </form></td> </tr> <tr> <td><form name="form1" method="post" action=""> <label>Phone: <input name="phone" type="text" id="phone"> </label> </form></td> </tr> <tr> <td><form name="form2" method="post" action=""> <label>Comments: <textarea name="comments" id="comments"></textarea> </label> </form> </td> </tr> <tr> <td><form name="form6" method="post" action=""> <label> <input type="submit" name="Submit" value="Submit"> </label> </form></td> </tr> </table> Code (markup):
Using the mail()-function in PHP you can send e-mails to both you and your customer as soon as somebody hits submit. www.php.net/mail To create a Tab within your mail text you use the following: \t So a line like "mail\texample@example.com" will output: mail example@example.com Code (markup):
No offense, but you charge $50/hour for PHP programming and don't know how to do this? What you're asking for is very basic, and I honestly don't know how you can charge $50 for this... Or... did you sell this place and it's referring to someone else? lol... I'm confused.
My company offers this service. I am doing this on a personal basis... Everyone is pretty busy around here at the moment, so I'm not inclined to take anyone away from more important work for my own personal project. There's really no need to be a dick...
There is no need to be rude. He asked a simple question, no need to disrespect him. Anyway, here is a script that I wrote which does what you need without the file output: http://www.free-php-scripts.net/P/Contact_Form Peace,
I agree, there was no reason for him to be rude.. Anyway, thank you for the example.. I already made one... Just doing a favor for a friend that was not at all work related..