|
WebKeystone Example 5: Creating a customer ID from visitor input
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/example5.prof">
Customer ID Form
Please fill in all of the fields and click submit to proceed.
<INPUT NAME="FirstName.req" SIZE=25>First name
<INPUT NAME="LastName.req" SIZE=25>Last name
<INPUT NAME="Zip.req.vZip" SIZE=10>Zip Code
<INPUT TYPE="SUBMIT" VALUE="Submit">
<INPUT TYPE="RESET" VALUE="Reset"></FORM>
### PROFILE FOR EXAMPLE 5 ###
IF MissingReq
RETURN 'examples/example5Missing.html'
#Define the Customer ID (CustID)
ELSE
CustID=FirstName[0]+LastName[0]+Zip[0:5]
RETURN 'examples/example5Return.html'
Example 5 Customer ID Form Here is your Customer ID Name..............%(FirstName)s %(LastName)s Customer ID....%(CustID)s |
template = '<LI> %(1)s' #--------------------- Sorry, we need more information! 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. Thank You! |
| 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. |