HTML email include PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AngelaChau
    New Member
    • Jul 2006
    • 1

    HTML email include PHP

    :mad: I would to ask how to implement the PHP into the HTML email.

    Here I want to make a email with graphic and questionaire, which could collect the customer information. After the customer received the email, he could answer the questionaire directly in mail server.

    I want to know what should I do.

    I need to edit a PHP file, HTML file...... what is the PHP code, and should I need to write a PHP code in the HTML file?
    Attached Files
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    I am not sure I know exactly what you mean by "PHP in the HTML in the email" and "answer the questionaire directly in mail server."

    If you want code to be executed you do so on the server, especially PHP which is a server side language.

    Usually, what you do is give the recipient of the email a link in the email message itself. When the recepient clicks on that link he is directed to a HTML/PHP form on your server.

    Ronald :cool:

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      If you wish to know about PHP then visit

      PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


      You don't put PHP into and HTML file so much as put HTML into a PHP file (or script). A PHP file may not have many dynamic elements and thus the contents look like an HTML file with a few bits of script, or it may be mainly dynamic content looking mainly like PHP script with bits of HTML or it may be solely PHP containing only PHP script code or it may be solely HTML containing only HTML code, or anywhere in between.

      Comment

      Working...