SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Forms retaining structure in submisson

    How would one receive a form in an email that looks like the form on the webpage?

    Thanks

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,177
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Hi dontcallmedude. Welcome to the forums.

    You can send HTML in an email, but it's much harder to style reliably than in a web page. You basically have to code it as if it's still 1999. But the form is not likely to work in the email. You can't include PHP or any other server-side language, and you may be able to send some JS, but I'm not sure how reliable that would be.

    What's your aim in doing this?

  3. #3
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a client who has a job application form on his website, and he wants the results of that form to look like the form on his site. Can this be accomplished via a database?

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,177
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by dontcallmedude View Post
    he wants the results of that form to look like the form on his site.
    Do you mean the results in the form of an email to himself? You can certainly style up an email to look something like that, although I don't see the point, really, as long as he gets the information.

    Can this be accomplished via a database?
    You could certainly have a database involved, but is it really needed? What does he actually need? It sounds like, when someone fills in the application form, the client needs to receive an email with the details of the application. Is that right, or is something else needed?

  5. #5
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    Do you mean the results in the form of an email to himself? You can certainly style up an email to look something like that, although I don't see the point, really, as long as he gets the information.



    You could certainly have a database involved, but is it really needed? What does he actually need? It sounds like, when someone fills in the application form, the client needs to receive an email with the details of the application. Is that right, or is something else needed?
    Thanks for the reply. It's appreciated.

    It's not a matter of need. The client is requesting this, and I'm following through. He wants the results to be in the form of the form on his website. I have no agenda as to how it's done, except simplicity.

    My goal is to find out if it can be done and how it can be done.

    Does that help?

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,177
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by dontcallmedude View Post
    Does that help?
    I guess so. It sounds like you just need a simple PHP form on the website. Once someone fills in the form, the PHP script sends an email to the client with the submitted information—just like in a typical contact form. That can be a styled HTML email. The only thing to watch out for is that HTML email is pretty tricky. If the client is using something like Apple's Mail client, then you'll have a pretty easy time of it, but if he's using Outlook, it's time to get out your Voodoo doll and place multiple curses on the people at Micro$oft.

    If you need help with the email styling, let us know, but we need to see the form layout on the site first.

  7. #7
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    I guess so. It sounds like you just need a simple PHP form on the website. Once someone fills in the form, the PHP script sends an email to the client with the submitted informationójust like in a typical contact form. That can be a styled HTML email. The only thing to watch out for is that HTML email is pretty tricky. If the client is using something like Apple's Mail client, then you'll have a pretty easy time of it, but if he's using Outlook, it's time to get out your Voodoo doll and place multiple curses on the people at Micro$oft.

    If you need help with the email styling, let us know, but we need to see the form layout on the site first.
    Thank you, and yes, the client uses Outlook. He's a PC user, is there another email client he could use that would fit the bill?

    Thanks again! You've been a big help.

  8. #8
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,177
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    You're welcome.

    Quote Originally Posted by dontcallmedude View Post
    Thank you, and yes, the client uses Outlook. He's a PC user, is there another email client he could use that would fit the bill?
    It would probably be hard to wean him off Outlook. I'm not really au fait with PC email clients, so I can't really advise, although you can look at what they do and don't support CSS-wise here: http://www.campaignmonitor.com/css/

    Actually, though, now that I reflect on it, the problem with Outlook is in styling an email that will look good in Outlook at the same time as in other clients. If you are just doing this for the client's eyes, and can focus on Outlook alone, it may not be so bad. As I understand it, Outlook is based around the Word rendering engine, and thus I assume that if you can knock up an acceptable layout in Word, you can use it for Outlook too. (This makes life a misery if you need to design emails for all clients, but it's probably OK if you are just focued on Outlook itself.)


Tags for this Thread

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
  •