Page

F.7.3- Sample Multiple Submit Buttons

  by NT Community Manager.
Last Updated  by NT Community Manager.  

PublicCategorized as Appendix F.

Not tagged.
<< F.7.2- Common ErrorsAppendixFF.8.0- List Boxes >>

Sample Multiple Submit Buttons

The page Submit01Form.htm has two submit buttons:

 

...

<BODY>

<H3>Submit 01 Form</H3>

<FORM ACTION="Submit01Response.asp"METHOD=GET NAME="Form1">

Name of Item &nbsp&nbsp

<INPUT NAME="Item"  VALUE="Type nameof item here" SIZE=30>

<BR>

<INPUT TYPE="SUBMIT" value="PlaceOrder Now" NAME=SubOrderNow>

<INPUT TYPE="SUBMIT" value="QuotePrice, no order yet" NAME=SubQuoteOnly>

</FORM>

...

 

The result of this code is:

 

AppendixF_image015.jpg

 

Our response page would be something like Submit01Response.asp:

 

...

<BODY>

<H3>Submit 01 Response</H3>

 

<%

IfRequest.QueryString("SubOrderNow")="Place Order Now" Then

  Response.Write "Code to process the order"

Else

  Response.Write "Code to generate a quote"

End If

Response.Write " for a " &Request.QueryString("Item")

%>

</BODY></HTML>

...

 

<< F.7.2- Common ErrorsAppendixFF.8.0- List Boxes >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |