![]() |
|
|
Select CaseYou can read our introductory tutorial on Select Case if you haven't done so already. Here's an example using Select Case and a form. Below is the code for two pages, 'select.asp' and 'choice.asp'. On the first page 'select.asp' you will have the choice to select a meat type. Once you select that meat type and click submit, the details will be posted to 'choice.asp' and your selection will determine what is displayed on 'choice.asp'. The values sent in the form select box called 'selectMeat' will be captured and assigned to a variable called TypeOfMeat in 'choice.asp', i.e. TypeOfMeat=Request.Form("selectMeat") . It's at this point we use Select Case to determine what to display depending on the value chosen, sent and received. Select.asp <html> Choice.asp <%
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|