Previous | Next | Main Index: Frames | No Frames |
Document: Frames | No Frames |
Not using real-time processing: OrderForm.CreditCard.setup Credit Card OrderForm.Check.setup Personal Check - US citizens OrderForm.FaxMail.setup Fax or Mail OrderForm.CreditFaxMail.setup Credit Card, Fax, and Mail Demo.OrderForm.CreditFaxMail.setup Demo: Credit Card, Fax, and Mail Authorize.Net real-time processing: OrderForm.AuthorizeNet.CreditCard.setup Credit Card OrderForm.AuthorizeNet.Check.setup Personal Check - US citizens Demo.OrderForm.AuthorizeNet.CreditCard.setup Demo Authorize.Net: Credit Card Surepay real-time processing: OrderForm.Surepay.CreditCard.setup Credit Card OrderForm.Surepay.Check.setup Personal Check - US citizens Demo.OrderForm.Surepay.CreditCard.setup Demo Surepay: Credit Card Demo.OrderForm.Surepay.Check.setup Demo Surepay: Personal Check
Example: $OrderForm{1}[2] {1} An array's KEY value. KEY values will be referenced by their numeric value in the explanations below (0, 1, 2, etc.). [2] An array's element reference. Element numeric values will be spelled in the explanations below (zero, one, two, etc.) Specific arrays will be referenced as $OrderForm{1}. A specific element within a specific array will be referenced as $OrderForm{1}[2].Numeric array KEYS allow the Webstore script to sort the fields in ascending order for printing to the client's web browser, in the e-mail to the administrator, and the confirmation of order e-mail sent to the client.
%OrderForm = ( '0' => ['center', $global_page_title.' - Order Form', #'0' => ['center', 'RDC Software - Order Form', # Same as above 'center', qq! <TABLE BORDER=0 CELLSPACING=3> <TR><TH ALIGN=left>${nc_fnt_tag}We can not ship to PO Boxes.</FONT></TH></TR> <TR><TD>${nc_fnt_tag}Orders are processed within one business day of receipt.</FONT></TD></TR> <TR><TD>${nc_fnt_tag}Fields marked <B>Required</B> must be completed before <A HREF="#90H">submitting</A> your order.</FONT></TD></TR> </TABLE> !, '85%', # Table width: Page header '80%' # Table width: Section headers '425'], # Table width: Order form fields (decimal only) '10H' => ['center', 'Billing Address'], '11' => ['name', 'Name', 'text', 'SIZE="35" MAXLENGTH="100"', 'R'], '12' => ['company', 'Company', 'text', 'SIZE="35" MAXLENGTH="100"'], '13' => ['addr1', 'Address 1', 'text', 'SIZE="35" MAXLENGTH="100"', 'R'], '14' => ['addr2', 'Address 2', 'text', 'SIZE="35" MAXLENGTH="100"'], #'15' => ['addr3', 'Address 3', 'text', 'SIZE="35" MAXLENGTH="100"'], '16' => ['city', 'City', 'text', 'SIZE="35" MAXLENGTH="100"', 'R'], '17' => ['province', 'Province', 'select', '', 'US citizens only'], '18' => ['state', 'State', 'select', '', 'US citizens only'], '19' => ['country', 'Country', 'select', 'SELECTED~319', 'R'], '20' => ['zip', 'Zip/Postal Code', 'text', 'SIZE="25" MAXLENGTH="30"', 'R'], '21' => ['phone', 'Phone Number', 'text', 'SIZE="25" MAXLENGTH="30"', 'R'], '22' => ['fax', 'Fax Number', 'text', 'SIZE="25" MAXLENGTH="30"'], '23' => ['email', 'E-mail Address', 'text', 'SIZE="35" MAXLENGTH="100"', 'R', '<FONT SIZE=1>Receipt is mailed to this address</FONT>'], '22' => ['joinlist', 'Mailing List', 'checkbox', 'Add me to your mailing list'], '22C' => [], '40H' => ['center', 'Credit Card Details', 'center', qq! <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10> <TR> <TD><IMG SRC="$graphics_url/card.AmericanExpress.60x38.gif" alt="American Express" WIDTH=60 HEIGHT=38 BORDER=0></TD> <TD><IMG SRC="$graphics_url/card.Discover.60x38.gif" alt="Discover" WIDTH=60 HEIGHT=38 BORDER=0></TD> <TD><IMG SRC="$graphics_url/card.MasterCard.60x38.gif" alt="Mastercard" WIDTH=60 HEIGHT=38 BORDER=0></TD> <TD><IMG SRC="$graphics_url/card.Visa.60x38.gif" alt="Visa" WIDTH=60 HEIGHT=38 BORDER=0></TD> </TR> </TABLE> !], '41' => ['ccType', 'Type of Card', 'select', 'American Express:Discover:Mastercard:Visa', 'R'], '42' => ['ccName', 'Name on Card', 'text', 'SIZE="35" MAXLENGTH="100"', 'R'], '43' => ['ccNumber', 'Card Number', 'text', 'SIZE="25" MAXLENGTH="30"', 'R'], '44' => ['ccMonth', 'Expiration Month', 'select', 'January:February:March:April:May:June:July:August:September:October:November:December', 'R'], '45' => ['ccYear', 'Expiration Year', 'select', '', 'R'], #'46' => ['ccPhone', 'Cardholder Phone', 'text', 'SIZE="25" MAXLENGTH="30"', 'R'], '50H' => ['center', 'Shipping Address', 'left', '<B>We can not ship to PO Boxes</B> <P>Please enter your shipping address if different than the address you entered in the <A HREF="#10H">Billing Address</A> section. <P>If you enter information in any field between <B>Name</B> and <B>Phone</B>, all fields must be completed. <P><B>Shipping Instructions</B> field is always optional.'], '51' => ['shpName', 'Name', 'text', 'SIZE="35" MAXLENGTH="100"'], '52' => ['shpAddr1', 'Address 1', 'text', 'SIZE="35" MAXLENGTH="100"'], '53' => ['shpAddr2', 'Address 2', 'text', 'SIZE="35" MAXLENGTH="100"', 'Optional'], #'54' => ['shpAddr3', 'Address 3', 'text', 'SIZE="35" MAXLENGTH="100"', 'Optional'], '55' => ['shpCity', 'City', 'text', 'SIZE="35" MAXLENGTH="100"'], '56' => ['shpProvince', 'Province', 'select', '', 'US citizens only'], '57' => ['shpState', 'State', 'select', '', 'US citizens only'], '58' => ['shpCountry', 'Country', 'select', ''], '59' => ['shpZip', 'Zip/Postal Code', 'text', 'SIZE="25" MAXLENGTH="30"'], '60' => ['shpPhone', 'Phone', 'text', 'SIZE="25" MAXLENGTH="30"'], '61' => ['shpIns', 'Shipping Instructions', 'textarea', 'ROWS="6" COLS="55" WRAP=PHYSICAL', 'Optional'], '90H' => ['center', 'Submit Your Order'], '91S' => ['center', '<INPUT TYPE="submit" NAME="chkForm" VALUE="Submit Credit Card Order"> <INPUT TYPE="reset" VALUE="Reset">' ], '92C' => ['center', qq! <P><FONT COLOR="#DC143C"><B>Credit Card Details</B></FONT> (<A HREF="#40H">above</A>) <FONT COLOR="#DC143C"><B>are required</B></FONT>. <P>Receipt is sent to the <A HREF="#20">e-mail address</A> you entered on the order form. !], '93H' => ['center', 'Fax or Mail Order'], '93S' => ['center', '<INPUT TYPE="submit" NAME="faxOrder" VALUE="Send Order to Web Browser for Printing">' ], '94C' => ['left', qq! <DL> <DT>If you prefer to pay by check, or you do not feel comfortable transmitting credit card information over the Internet, you may send your order to your web browser for printing. <DT>$SPACE <DT>After printing, please be certain to fill in credit card information before faxing or mailing your order. Phone numbers will be printed at the top of your order. <DT>$SPACE <DT>Orders paid by check must be mailed to the address printed at the top of your order. <DT>$SPACE <DT><B>No e-mail receipt is generated using this submission method</B>. </DL> !], ); # DO NOT REMOVE - terminates %OrderForm
Order Form Page Header Array Elements of $OrderForm{0}: KEY zero one two three four five six '0' => ['center', 'Order Form', 'center', 'Text', '85%', '80%', '425'],
zero | Alignment attribute for text in element one. Valid alignment values are 'left', 'center', and 'right'. Text in element one will be centered if element zero is set to ''. | |
one | Text printed in a table row at the top of the order form page. HTML code may be used. | |
WebStore prints form submission error messages below this row. When submission error messages are printed, the contents of element three are not printed to the web browser. | ||
two | Alignment attribute for text in element three. Valid alignment values are 'left', 'center', and 'right'. Text in element three will be centered if element two is set to ''. | |
three | Text printed in a table row below element one's table row. HTML code may be used. | |
four | Width attribute for the top of page table containing element one and element three table rows. Width may be a percentage of the browser's window or pixel count. If no value is placed in element four, WebStore sets this table's width to '85%'. | |
five | Width attribute for section header tables (arrays xxH). | |
Width may be a percentage of the browser's window or pixel count. If no value is placed in element five, WebStore uses the value present in element four. If no value is placed in element four, WebStore sets the table's width to '85%'. | ||
six | Width attribute for tables containing form elements. | |
Width must be a 3 digit whole number. If no value is placed in element six or element six is mis-configured, WebStore sets the width to '425' for these tables. | ||
'0' => ['center', 'Order Form', '', '', '85%', '80%', '425'],$OrderForm{0} is optional and may be removed from %OrderForm. When $OrderForm{0} is not defined, WebStore sets section header table widths to '85%' and form element table widths to '425'. Text to be printed at the top of the order form may be placed in sub pre_form_html.
Section Header Arrays KEYS ending with H (xxH) {10H} {40H} {50H} {90H} {93H} Elements of $OrderForm{xxH}: KEY zero one two three '10H' => ['center', 'Text', 'left', 'Text' ],
zero | Alignment attribute for text in element one. Valid alignment values are 'left', 'center', and 'right'. Text in element one will be centered if element zero is set to ''. | |
one | Text printed in a table row to visually separate sections
of the order form. The text in element one is also used in
e-mail messages to subdivide form field data into visual sections.
| |
two | Alignment attribute for text in element three. Valid alignment values are 'left', 'center', and 'right'. Text in element three will be centered if element two is set to ''. | |
three | Text printed in a table row below element one's table row. HTML code may be used. |
No Header Text: $OrderForm{10H}[1] |
---|
Comment Arrays KEYS ending with C (xxC) {22C} {92C} {94C} Elements of $OrderForm{xxC}: KEY zero one '22C' => ['left', 'Text'],
zero | Alignment attribute for text in element one. Valid alignment values are 'left', 'center', and 'right'. Text in element one will be centered if element zero is set to ''. | |
one | Text printed in a table row with COLSPAN=3, the total number of columns in order form tables. HTML code may be used. |
Using Comment Array as a Space Row: '22C' => [],With no elements defined in a Comment Row, WebStore prints a table row with a height of 10:
<TR><TD COLSPAN=3 HEIGHT=10> </TD></TR>
Submission Button Arrays KEYS ending with S (9xS) Elements of $OrderForm{91S}: KEY zero '91S' => ['center', one '<INPUT TYPE="submit" NAME="chkForm" VALUE="Submit Credit Card Order"> <INPUT TYPE="reset" VALUE="Reset"> ', two three 'center', 'Text'], Elements of $OrderForm{93S}: KEY zero '93S' => ['center', one '<INPUT TYPE="submit" NAME="faxOrder" VALUE="Send Order to Web Browser for Printing">', two three 'left', 'Text'],
zero | Alignment attribute for the form buttons in element one. Valid alignment values are 'left', 'center', and 'right'. Form buttons in element one will be centered if element zero is set to ''. | |
one | Form submit buttons must be placed in this element. | |
A form submit button named chkForm or faxOrder must exist in element one of an %OrderForm array whose KEY is greater than or equal to 90S or WebStore will not print the contents of any array greater than or equal to 90. | ||
When neither button is detected, WebStore prints an error message at the top of the page, informing you the form submit buttons did not exist in an array greater than or equal to 90S. | ||
two | Alignment attribute for text in element three. Valid alignment values are 'left', 'center', and 'right'. Text in element three will be centered if element two is set to ''. | |
three | Text printed in a table row below element one's table row. HTML code may be used. |
<INPUT TYPE="checkbox"> password radio select text textarea Elements of $OrderForm{22}: KEY zero one two three four five '22' => ['name', 'Field Label', 'checkbox', 'Text', '', ''],
zero | <INPUT NAME="name"> | |
one | Field label printed in e-mail messages.
| |
two | <INPUT TYPE="checkbox"> | |
three | Descriptive text printed in e-mail messages.
| |
four | Required/Optional Field: Not used checkbox inputs are forced OPTIONAL regardless of the value of element four. | |
five | Text printed in a table row below the form element, in the same column as the form element. HTML code may be used. |
<INPUT TYPE="password"> checkbox radio select text textarea Example: KEY zero one two three four five '21' => ['name', 'Field Label', 'password', 'SIZE="25" MAXLENGTH="35"', 'R', ''],
zero | <INPUT NAME="name"> | |
one | Field label printed left of the form element and in e-mail messages.
| |
two | <INPUT TYPE="password"> | |
three | Attributes for the <INPUT TYPE> (size, maxlength, etc.). | |
four | Required/Optional Field | |
Set Required Fields to 'R'. Form submission is not accepted until the client completes the field. | ||
Set Optional Fields to ''. Form submission is accepted regardless of the field's content. Syntax checks will be performed on the text present in an optional field when WebStore detects a Specific Form Field Name. | ||
Text may be included in element four of optional fields.
When the length of text exceeds 20 characters, the text is placed
in a table row beneath the field. HTML code may be used.
Optional text is printed in | ||
five | Text printed in a table row below the form element, in the same column as the form element. HTML code may be used. |
<INPUT TYPE="radio"> checkbox password select text textarea KEY zero one two three four five '73' => ['name', 'Field Label', 'radio', 'Option1:Option2:Option3', 'R', ''],
zero | <INPUT NAME="name"> | |
one | Field label printed in e-mail messages.
| |
two | <INPUT TYPE="checkbox"> | |
three | Descriptive text printed in e-mail messages.
| |
four | Required/Optional Field: Not used checkbox inputs are forced OPTIONAL regardless of the value of element four. | |
five | Text printed in a table row below the form element, in the same column as the form element. HTML code may be used. | |
'73' => ['name', 'Field Label', 'select', 'Option1:Option2:Option3'],
'73' => ['name', 'Field Label', 'select', 'Option1:CHECKED~Option2:Option3'],
<SELECT NAME="name"> checkbox password radio text textarea KEY zero one two three four five '73' => ['name', 'Field Label', 'select', 'Option1:Option2:Option3', 'R', ''],
zero | <SELECT NAME="name"> | |
one | Field label printed in e-mail messages.
| |
two | <INPUT TYPE="select"> | |
three | Colon delimited list of options.
The descriptive text printed in e-mail messages.
| |
four | Required/Optional Field | |
Set Required Fields to 'R'. Form submission is not accepted until the client completes the field. | ||
Set Optional Fields to ''. Form submission is accepted regardless of the field's content. Syntax checks will be performed on the text present in an optional field when WebStore detects a Specific Form Field Name. | ||
Text may be included in element four of optional fields.
When the length of text exceeds 20 characters, the text is placed
in a table row beneath the field. HTML code may be used.
Optional text is printed in | ||
five | Text printed in a table row below the form element, in the same column as the form element. HTML code may be used. | |
'73' => ['name', 'Field Label', 'select', 'Option1:Option2:Option3'],
'73' => ['name', 'Field Label', 'select', 'Option1:SELECTED~Option2:Option3'],
<INPUT TYPE="text"> checkbox password radio select textarea KEY zero one two three four five '21' => ['name', 'Field Label', 'text', 'SIZE="25" MAXLENGTH="35"', 'R', ''],
zero | <INPUT NAME="name"> | |
one | Field label printed left of the form element and in e-mail messages.
| |
two | <INPUT TYPE="text"> | |
three | Attributes for the <INPUT TYPE> (size, maxlength, etc.). | |
four | Required/Optional Field | |
Set Required Fields to 'R'. Form submission is not accepted until the client completes the field. | ||
Set Optional Fields to ''. Form submission is accepted regardless of the field's content. Syntax checks will be performed on the text present in an optional field when WebStore detects a Specific Form Field Name. | ||
Text may be included in element four of optional fields.
When the length of text exceeds 20 characters, the text is placed
in a table row beneath the field. HTML code may be used.
Optional text is printed in | ||
five | Text printed in a table row below the form element, in the same column as the form element. HTML code may be used. |
<INPUT TYPE="textarea"> checkbox password radio select text KEY zero one two three four five '58' => ['name', 'Field Label', 'textarea', 'ROWS="6" COLS="50"', 'Optional', ''],
zero | <INPUT NAME="name"> | |
one | Field label printed in a table row above the form element and in
e-mail messages.
| |
two | <INPUT TYPE="textarea"> | |
three | Attributes for the <INPUT TYPE> (rows, cols, etc.). | |
four | Required/Optional Field | |
Set Required Fields to 'R'. Form submission is not accepted until the client completes the field. | ||
Set Optional Fields to ''. Form submission is accepted regardless of the field's content. | ||
Text may be included in element four of optional fields.
When the length of text exceeds 20 characters, the text is placed
in a table row beneath the field. HTML code may be used.
Optional text is printed in | ||
five | Text printed in a table row below the form element with COLSPAN=3. HTML code may be used. | |
textarea input types are printed in a table row with COLSPAN=3. Text in elements one and five are printed in table rows above and below the textarea form element row (respectively). |
<INPUT TYPE="password" NAME="password1"> <INPUT TYPE="password" NAME="password2"> '23' => ['password1', 'Password', 'password', 'SIZE="25" MAXLENGTH="35"', 'R'], '24' => ['password2', 'Password Again', 'password', 'SIZE="25" MAXLENGTH="35"', 'R'],
<SELECT NAME="province"> state country ccYear KEY zero one two three four '18' => ['province', 'Province', 'select', '', 'Canada only'],
<SELECT NAME="state"> province country ccYear KEY zero one two three four '18' => ['state', 'State', 'select', '', 'US citizens only'],
<SELECT NAME="country"> province state ccYear KEY zero one two three four '19' => ['country', 'Country', 'select', 'SELECTED~319', 'R'],
<SELECT NAME="ccYear"> province state country KEY zero one two three four '45' => ['ccYear', 'Expiration Year', 'select', '', 'R'],
Alpha: 'January:February:March:April:May:June:July:August:...December' Alpha: 'Jan:Feb:March:April:May:June:July:Aug:Sept:Oct:Nov:Dec' Numeric: '01:02:03:04:05:06:07:08:09:10:11:12'If you do not list twelve colon delimited values for months, WebStore sets months to '01:02:03:04:05:06:07:08:09:10:11:12'.
@opt_shipping = ('51', '52', '55', '56', '57', '58', '59', '60');
@credit_card = ('41', '42', '43', '44', '45', '46');
$header_colors = '0';
0 | $header_bkg_clr is the row's background color and $header_fnt_clr is the row's font color. | |
---|---|---|
1 | $dsc_hr_bkg_clr is the row's background color and $dsc_hr_fnt_clr is the row's font color. | |
2 | $data_bkg_clr is the row's background color and $data_fnt_clr is the row's font color. | |
'' | Setting $header_colors = '' disables header background color and
header font color. Colors default to |
$pre_form = '1';
<IMG SRC="$graphics_url/image.gif" BORDER=0 WIDTH=325 HEIGHT=40>
sub pre_form_html { print qq! <\!-- PRINTED FROM: sub pre_form_html in $form_file --> !; # DO NOT REMOVE - terminates "print qq!" command above. } # DO NOT REMOVE - End of sub pre_form_html
$form_trailer = '1';
<IMG SRC="$graphics_url/image.gif" BORDER=0 WIDTH=325 HEIGHT=40>
sub form_trailer_html { print qq! <\!-- PRINTED FROM: sub form_trailer_html in $form_file --> !; # DO NOT REMOVE - terminates "print qq!" command above. } # DO NOT REMOVE - End of sub form_trailer_html