Changing the html source page
 
One of the most useful features of the application is the ability to specify a different html source page than the page presented to the user. This allows you to put one face on the application for the user, and another for the recipient of the form. A common need for someone who received 10 or 20 emails from this application a day would be to strip out all the instructions and jazz and just present the base information.
 
So, for an example we will fill out some fields on this page, including the mailto and replyto fields, and send the results to ourselves in a clear and concise manner.

The file that we will use as the alternative html source will be specified like so:

      <input type="hidden" name="html_source" value="http://chico.nss.udel.edu/mailto/helpSourceShort.jsp">
    
helpSourceShort.jsp

The glue that ties the two pages together to make this work are the form field names. Check out the source of this page and helpSourceShort.jsp and you will notice that the field names are identical. It doesn't matter that some fields on this page are radio buttons and the corrosponding fields on the other page are text boxes. It only matters that the 'name=xyz' are case sensitive identical.

 
Let's start out by filling in the mailto address.
Mailto: (fill in your email address here)
 
Now we need to enter the replyto address.
Replyto: (fill in your email address here)
 
Here we can ask the user a question such as
How many widgets would you like. Should you be ordering between 10 and 100 widgets, you'll be losing all kinds of money. If you buy 1000 or more, you are wasting your money because there is not a market for that many widgets. What you really need to do is buy widget+ and sell those.
Widget Count:
  • 100 widgets
  • 500 widgets
  • 1000 widgets
  • 10000 widgets
 
What color would you like your widgets to be?
Widget Color:
 
Will you be able to pay for your widgets?
Can pay? Yes , No
 
     
 
Tutorial   |   Mailto Instructions   |   Bounce Instructions