<HTML> <HEAD> <TITLE>Button Demo</TITLE> </HEAD> <BODY> <% if Request("Content_Length")=0 then %> <FORM ACTION=ASP5.ASP METHOD=POST> <INPUT TYPE=SUBMIT NAME="Lion" VALUE="Lion"> <INPUT TYPE=SUBMIT NAME="Tiger" VALUE="Tiger"> <INPUT TYPE=SUBMIT NAME="Bear" VALUE="Bear"> </FORM> <% else %> <% Lion=(request("Lion")="Lion") Tiger=(request("Tiger")="Tiger") Bear=(request("Bear")="Bear") %> <% if Lion then %> Lions! <% end if %> <% if Tiger then %> Tiger! <% end if %> <% if Bear then %> Bear! <% end if %> Oh My! <% end if %> </BODY> </HTML>

Programming for Active Server Pages (Web Techniques, Oct 1997)
Related Reading
More Insights
INFO-LINK
![]() |
To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. |