SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating form to email info

    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?
    Thanks In Advance

    David

  2. #2

  3. #3
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 = 'youremail@email.com';

    That is what I dont need. I need it to email the addy I put in the Email box.
    Thanks In Advance

    David

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,218
    Mentioned
    457 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by laflair13 View Post
    never done one where you fill in the email yourself.
    I don't quite understand what you mean by that.

  5. #5
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    I don't quite understand what you mean by that.
    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.
    Thanks In Advance

    David

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,218
    Mentioned
    457 Post(s)
    Tagged
    8 Thread(s)
    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?

  7. #7
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

    Attached Images Attached Images
    Thanks In Advance

    David

  8. #8
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,218
    Mentioned
    457 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by laflair13 View Post
    I dont want to have to fill in the prefilled into it.
    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.

  9. #9
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea but to a lazy client it might be... lol
    Thanks In Advance

    David


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •