laflair13 — 2011-12-15T21:22:30-05:00 — #1
Basically what I am trying to do is have a form where I can put in some info and have it mailed to the email I put in. Something like the image below.
Is there any kind of tutorial or anything close that can show me how to do this?
ralphm — 2011-12-15T21:30:27-05:00 — #2
laflair13 — 2011-12-15T21:35:39-05:00 — #3
Very much appreciated. I am a newcomer when it comes to php. I can do a simple contact form, but never done one where you fill in the email yourself.
$to = 'email@example.com';
That is what I dont need. I need it to email the addy I put in the Email box.
ralphm — 2011-12-15T21:36:47-05:00 — #4
I don't quite understand what you mean by that.
laflair13 — 2011-12-15T21:42:01-05:00 — #5
Like I need to put in a email that I want the info to be sent to. I dont need the info sent to myself. Basically when someone asks for a quote, I can pull up this form and send it to their email, So the email will always be different as well as the info I am sending out.
ralphm — 2011-12-15T21:48:25-05:00 — #6
OK, so you just need the "to" email address to be part of the form, rather than hard-coded. Although I have to ask, why not just do this via your regular email client?
laflair13 — 2011-12-15T22:00:27-05:00 — #7
Yes, thats what I need, and because I dont want to have to fill in the prefilled into it.
The outcome is going to look something like this
Bold being the pre-generated content
ralphm — 2011-12-15T22:03:49-05:00 — #8
Sure, although you could just do a quick cut and paste each time. Not much work in my view. Anyhow, just saying!
If you have done a contact form before, all you need to do differently for this one is create an extra variable (for the 'to' email address) and feed this variable into the 'to' field of the mail () section as the to address.
laflair13 — 2011-12-15T22:05:26-05:00 — #9
Yea but to a lazy client it might be... lol