|
WebKeystone Example 1: Generating a contract faxback form on the fly
The Form
The Files
<FORM METHOD="POST" ACTION="/wkstone/webkeystone.py">
<INPUT TYPE="HIDDEN" NAME="UserID" VALUE="biz_webkeystone">
<INPUT TYPE="HIDDEN" NAME="Profile" VALUE="examples/example1.prof">
<P><FONT SIZE=+1><B>Terms and Conditions Contract -- Faxback Signature Form</B></FONT>
<BR><I>Please fill in all of the fields and click submit to proceed.</I>
<P><INPUT NAME="FirstName.req" SIZE=25>First name
<BR><INPUT NAME="LastName.req" SIZE=25>Last name
<BR><INPUT NAME="PhoneNumber.req.vTel" SIZE=25>Phone Number ie: <FONT SIZE=-1>###-###-####</FONT>)
<BR><INPUT NAME="Address1.req" SIZE=25>Address
<BR><INPUT NAME="City.req" SIZE=25> City <INPUT NAME="State.req" SIZE=2> State <INPUT NAME="Zip.req.vZip" SIZE=10>Zip
<P>
<INPUT TYPE="SUBMIT" VALUE="Submit">
<INPUT TYPE="RESET" VALUE="Reset">
</FORM>
### PROFILE FOR EXAMPLE 1 ###
IF MissingReq
RETURN 'examples/example1Missing.html'
RETURN 'examples/example1Return.html'
<CENTER><FONT SIZE=+2><B>Example 1 Signature Form</B></FONT></CENTER> <P> <HR> <P> Please check to make sure the following information is correct and complete. Print this page, sign on the signature line, and fax or mail the signed form to us. <P> <CENTER><TABLE BORDER=5 CELLPADDING=3 COLS=1 WIDTH=600> <TR> <TD> <FONT SIZE=+1><B><I>Terms and Conditions Signature Form</I></B></FONT> <P>I fully understand and accept the terms and conditions stated herein. <P> %(FirstName)s %(LastName)s <BR>%(PhoneNumber)s <BR>%(Address1)s <BR>%(City)s, %(State)s %(Zip)s <P>Signature _____________________________<BR> <FONT COLOR=#FFFFFF>________</FONT><I>%(FirstName)s %(LastName)s</I> </TD></TR></TABLE></CENTER> |
template = '<LI> %(1)s' #--------------------- <HR> <H2>Sorry, we need more information!</H2> <P>The following fields were left blank or completed incorrectly: <UL> %(MissingReq,template)s </UL> Please click "Back" on your browser to return to our form, complete the required fields, and resubmit the form. <P><H2>Thank You!</H2> <HR> |
| Previous Example | Next Example | Table of Contents |
Updated 2-August-99
|
|
|
|
|
| WebKeystone is a product of Townsend Software, Inc. ©1998 - 2001 Townsend Software, Inc. All rights reserved. |