Previous in Contents Next in Contents

Page.VerifyWith Method

The VerifyWith method outputs HTML tags in the form <INPUT TYPE="HIDDEN"> in an HTML form. These hidden fields contain specified values from the OrderForm object, to be used to verify that an order has not been altered between presentation of the OrderForm and final purchase. When the order form is submitted, the ProcessVerifyWith method on the target page stores these fields in a Dictionary object in the OrderForm, which is then passed to the OPP. One of the objects in the pipeline compares the original values with the values from the hidden fields.

Syntax

Page.VerifyWith(OrderForm, Arguments)

Parameters

OrderForm
The OrderForm object that contains the values to verify.
Arguments
One or more arguments that identify the OrderForm fields to use for verification.

Remarks

The VerifyWith method verifies String, Number or Double Variants. This method cannot be used to verify a Date Variant.

Example

The following example generates hidden fields containing the values stored in the _total_total, ship_to_zip, and _tax_total fields of the supplied OrderForm object:

<FORM METHOD="POST"
    ACTION="<% = mscsPage.SURL("xt_orderform_purchase.asp") %>">
    <% = mscsPage.VerifyWith(mscsOrderForm, "_total_total", "ship_to_zip", "_tax_total") %>

When the page containing this call is loaded in the client browser, the document source for the page would contain the following HTML script (assuming a total of 138.95, a zip code of 98133, and a tax of 8.75):

<FORM METHOD="POST"
ACTION="http://example.microsoft.com/clocktower/xt_orderform_purchase.asp">
<INPUT TYPE=HIDDEN NAME="_VERIFY_WITH" VALUE="_total_total=13895">
<INPUT TYPE=HIDDEN NAME="_VERIFY_WITH" VALUE="ship_to_zip=98133">
<INPUT TYPE=HIDDEN NAME="_VERIFY_WITH" VALUE="_tax_total=875">

Related Topics


© 1997-2000 Microsoft Corporation. All rights reserved.