1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Close to completing form

Discussion in 'Web Design & Development' started by ddpromo1, Jun 28, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. ddpromo1

    ddpromo1 Thread Starter

    Joined:
    Jul 17, 2004
    Messages:
    42
    WISYWIG is just not getting what I want when creating my form.

    I'm trying to capture my traffic, by offering a free ebook. Common, no brainer form to some, but not me. I want to get a name and email address, upon submit direct them to a page to download ebook (Simple).

    Tested it out and when I hit submit, it opened up outlook mail program to send message to my email address (which I want), but I want to direct them "thank you" page with download file, without an added steps (sending email to me, then waiting to receive download link).

    Anyway, here's the code and link where form is at..

    <form action="mailto:[email protected]?subject=Free_Real_Estate_Demo" method="post" enctype="multipart/form-data" name="form1">
    <p>See For Yourself Download Our Free Demo!</p>
    <p><img src="/realestguide.png" width="269" height="334"></p>
    <p>Name:
    <input name="textfield" type="text" value=" " maxlength="20">
    </p>
    <p>E-mail:
    <input name="textfield2" type="text" value=" " maxlength="20">
    </p>
    <p align="center">
    <input type="submit" name="Submit3" value="Submit">
    <input type="reset" name="Submit4" value="Reset">
    </p>
    <p>&nbsp; </p>
    </form>

    http://www.advertisingagency1.com/RealEstateSalesTool.htm

    Thanks,:)
     
  2. lavazza

    lavazza

    Joined:
    May 15, 2006
    Messages:
    125
    The easiest way, I think, would be to use a form mail script - typically a cgi php file loaded on to your server - meaning, once it's all set yp, you change the action to (for example) action="http://www.advertisingagency1.com/cgi_php/formmail.php"

    If you google for formmail you'll find many to choose from

    The one I like is from tectite.com.au

    The file reads like 'War and Peace' simply because the writer has added 100s and 100s of easy to understand and reassuring /* comments */ aimed at total newbies AND seasoned pros
     
  3. ddpromo1

    ddpromo1 Thread Starter

    Joined:
    Jul 17, 2004
    Messages:
    42
    Thanks I'll try that..
     
  4. ddpromo1

    ddpromo1 Thread Starter

    Joined:
    Jul 17, 2004
    Messages:
    42
    Lavazza,

    Ok, went to tectite.com for a generic form. where do I put in htm page for visitors to download ebook after they submit?

    <html>
    <head>
    <title>Sample form for use with formmail.php</title>
    </head>
    <body>
    <p>This form demonstrates the use of formmail.php.
    <br />Note that formmail.php requires a one line change
    to work. Use a text editor to read the information
    at the top of formmail.php.
    </p>
    <p>Also, you need to change this form using a text editor;
    follow the 4 simple steps shown in the comments.
    </p>
    <p>We've included sample fields to show you how to
    submit Checkboxes, Radio Buttons, Multi-selection
    List Boxes, normail Text fields, and Text Areas.
    </p>
    <p>
    For full information and support, visit
    <a href="http://www.tectite.com/">www.tectite.com</a>

    </p>
    <p></p>
    <!-- STEP 1: Put the full URL to formmail.php on your website in the 'action' value. -->
    <form method="post" action="http://www.advertisingagency1.com/Testform.php" name="SampleForm">
    <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
    <!-- STEP 2: Put your email address in the 'recipients' value.
    Note that you also have to allow this email address in the
    $TARGET_EMAIL setting within formmail.php!
    -->
    <input type="hidden" name="recipients" value="imsDQK8Jadvertisingagency1.com" />
    <!-- STEP 3: Specify required fields in the 'required' value -->
    <input type="hidden" name="required" value="email:Your email address,realname:Your name" />
    <!-- STEP 4: Put your subject line in the 'subject' value. -->

    <input type="hidden" name="subject" value="Sample FormMail Testing" />

    <table border="1" cellspacing="5%">
    <tr>
    <td>
    <p>Please enter your name:</p>
    </td>
    <td><input type="text" name="realname" />
    </td>

    </tr>
    <tr>
    <td>
    <p>Please enter your email address:</p>
    </td>
    <td><input type="text" name="email" />
    </td>
    </tr>

    <tr>
    <td><p>May we contact you?</p>
    </td>
    <td>
    Yes <input type="radio" name="contact" value="Y" checked />
    No <input type="radio" name="contact" value="N" />
    </td>

    </tr>
    <tr>
    <td><p>What are your favourite colours?</p>
    </td>
    <td>
    Red <input type="checkbox" name="colors[]" value="red" />
    Blue <input type="checkbox" name="colors[]" value="blue" />

    Yellow <input type="checkbox" name="colors[]" value="yellow" />
    </td>
    </tr>
    <tr>
    <td valign="top"><p>What vehicles do you have a license to operate?</p>
    </td>
    <td valign="top">
    <select name="vehicles[]" multiple size="5">

    <option value="Car">Car</option>
    <option value="Bus">Bus</option>
    <option value="Truck">Truck</option>
    <option value="Plane">Aeroplane</option>
    <option value="Boat">Boat</option>
    </select>&nbsp;(Select all that apply; use CTRL-click to select)
    </td>

    </tr>
    <tr>
    <td valign="top">
    <p>Please enter your message:</p>
    </td>
    <td><textarea name="mesg" rows="10" cols="50"></textarea>
    </td>
    </tr>

    <tr>
    <td><input type="submit" value="Submit" /></td>
    <td></td>
    </tr>
    </table>
    </form>
    <!--
    Please support the ongoing development of FormMail and our other
    freeware products by keeping the following text on your form
    (or placing it elsewhere on your website). Thanks!
    -->
    <!-- START LINK -->
    <small>This form and its
    <a href="http://www.tectite.com/">html form processor</a>
    supplied by www.tectite.com.

    </small>
    <!-- END LINK -->
    </body>
    </html>
     
  5. lavazza

    lavazza

    Joined:
    May 15, 2006
    Messages:
    125
    formmail has the facility for visitors (after they click submit) to be redirected to an 'error.html' or 'success.html' page - pages that you write (ie they're not 'supplied' with the formmail from tectite)

    e.g
    www.advertisingagency1.com/ebook/error.html
    www.advertisingagency1.com/ebook/success.html

    I'd put a 'download ebook' control/link on the success page



    NB. As the 'success.html' page is simply an ordinary page, there's no (simple) way to hide it from someone who has the time/patience to experiment with possible URIs - so you might want to write a javascript referrer function in the <head> that fires when the page is loaded

    e.g <body onLoad="checkReferrer();">

    If they did NOT come directly from the 'correct' page, you can auto-redirect them to a message with links to the 'correct' page
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/589680

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice