Autorun CD-ROM Menu - Using HTML Variables
You can set up your project so end-users enter values in an HTML form, and the values are displayed on other HTML pages in your project. The variables are stored in the Windows registry in this key HKEY_CURRENT_USER\Software\WiscoCDMenu\Vars

Creating a Form:
In the following example, we use the FORM tag. Normally, you set the target page as the "action". When the end-user clicks the "submit" button, it takes the user to the "action" page, This is a good idea, because it shows that something was accomplished.

You can put as many string fields in the form that you want. Each field must use a different name tag. In our example we have set up two variables, one with the tag "name" and the second with the tag "color."

Finally you will need a "Submit" button. The text you assign to "value" will show up on the button.


The following HTML code will create two edit boxes for the values:

<p></p>
<form method="POST" name="WCDTestForm" action="vartest.htm">
<table border="0" >
<tr>
<td>Your Name:</td>
<td><input type="Your Name" name="name" size="30"></td>
</tr>
<tr>
<td>Favorite Color</td>
<td><input type="Favorite Color" name="color" size="30"></td>
</tr>
</table>
<br>
<input type="submit" name="Button" value="Accept" >
</form>

Your Name:
Favorite Color


Displaying the Variables:
The variables' values are displayed by using "include" tags. Use the variable's tag.


The following HTML code displays the two variables from the above example:

Your name is: <!--#include name -->
<p>
Your favorite color is: <!--#include color -->

Your name is:

Your favorite color is:

Deleting Variables:
You can set up a link to clear all variables that have been set using the cmdDeleteVars command type.

© 2004-2005 WISCO Computing All Rights Reserved. Page Design by www.wiscocomputing.com
   <   
   >   
Browse