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.
Page.VerifyWith(OrderForm, Arguments)
The VerifyWith method verifies String, Number or Double Variants. This method cannot be used to verify a Date Variant.
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">