Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: .html automated response query  (Read 4943 times)

0 Members and 1 Guest are viewing this topic.

goldni

    Topic Starter


    Starter

    .html automated response query
    « on: December 14, 2008, 05:15:10 AM »
    Hi.

    When someone comes on my site and submits any information, I'd like to create an automated email response to that which goes direct to their email address. How would I do this in HTML? Thanks!

    goldni

      Topic Starter


      Starter

      Re: .html automated response query
      « Reply #1 on: December 14, 2008, 05:48:23 AM »
      Im a complete rookie so Im gonna need ur help guys! Thanks in advance.

      Ive got this so far;

      <FORM METHOD="POST" ACTION="mailto:[email protected]"><INPUT TYPE="text" NAME="name" SIZE="30"><INPUT TYPE="submit"></FORM>

      But it only gives me text box and a submit button. It will send the text to my nominated email address, which is good. But i also want to send an automated response to the viewer's address. how would i do this?

      Also, i tried the above code, and when i click submit, it opens up the internet connectin wizard. it wants me to set up an email address and email server etc. how can i get it to send an email directly to my (and the viewer's) email address without going through this step of setting up an email server?

      THANKS A BILLION PPL!!!

      kpac

      • Web moderator
      • Moderator


      • Hacker

      • kpac®
      • Thanked: 184
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 7
      Re: .html automated response query
      « Reply #2 on: December 14, 2008, 06:10:32 AM »
      You'll need to use PHP for that.

      Try this for the page with the form:

      Code: [Select]
      <html>
      <head>
        <title>Mail</title>
      </head>

      <body>
        <form action="sendmail.php" method="post">
          Name: <input type="text" name="name" id="name" /><br />
          Email: <input type="text" name="email" id="email" /><br />
          <input type="submit" />
        </form>
      </body>
      </html>

      sendmail.php:
      Code: [Select]
      <?php

      $to 
      $_REQUEST['email'], "[email protected]";
      $name $_REQUEST['name'];

      $message "Thanks for using our form! The name you entered is: $name.";
      $subject "Mail Form";

      mail($to,$subject,$message);

      ?>

      « Last Edit: December 14, 2008, 06:21:49 AM by kpac »

      goldni

        Topic Starter


        Starter

        Re: .html automated response query
        « Reply #3 on: December 14, 2008, 05:44:55 PM »
        thanks for such a quick response.
        one more question: can i copy + paste the above php into MS Frontpage? or do I need another program?
        you can probably tell im really not familiar with this stuff so any help would be appreciated.
        THANKS!

        soybean



          Genius
        • The first soybean ever to learn the computer.
        • Thanked: 469
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 10
        Re: .html automated response query
        « Reply #4 on: December 14, 2008, 09:35:34 PM »
        See this video on pasting code into FrontPage.  The video is not easy to listen to; the sound quality is fuzzy and the speaker has an accent.  But, I think you will find it helpful.   How to Copy and Paste HTML into FrontPage.

        CBMatt

        • Mod & Malware Specialist


        • Prodigy

        • Sad and lonely...and loving every minute of it.
        • Thanked: 167
          • Yes
        • Experience: Experienced
        • OS: Windows 7
        Re: .html automated response query
        « Reply #5 on: December 15, 2008, 02:29:05 AM »
        You also need to make sure that PHP is installed on your server and that your server supports the mail() function.  You may need to contact whoever hosts your site to find this out.
        Quote
        An undefined problem has an infinite number of solutions.
        —Robert A. Humphrey

        kpac

        • Web moderator
        • Moderator


        • Hacker

        • kpac®
        • Thanked: 184
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 7
        Re: .html automated response query
        « Reply #6 on: December 15, 2008, 09:25:21 AM »
        Front Page doesn't support PHP, as it's not Microsoft!

        soybean



          Genius
        • The first soybean ever to learn the computer.
        • Thanked: 469
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 10
        Re: .html automated response query
        « Reply #7 on: December 15, 2008, 03:32:46 PM »
        But, references can be found saying php can be put it a page developed with FrontPage.  One paragraph on http://www.webworksite.com/tipsntricks.shtml says,
         
        "Using PHP with FP -  To open .php pages in FrontPage 2000-2002 instead of a text editor, go to 'Tools | Options | Configure editors' and modify the file association to frontpg.exe. The server you publish to must have PHP enabled. FP 2003 is already set as the default editor for .php pages, along with many other types including .aspx, .xml, .shtml, and many others."