Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML
Asp > Code Snippets sample source codes
Redirect to other pages based on the selection from a radio button
Redirect to other pages based on the selection from a radio button <form action = "<%= Request.ServerVariables("SCRIPT_NAME")%>" method="post"> <input type = "radio" name = "page" value = "home" checked>home<br> <input type = "radio" name = "page" value = "tutorials">tutorials<br> <input type = "radio" name = "page" value = "downloads">downloads<br> <input type = "submit" value = "go"> </form> <% 'get the users selection from the form strURL = Request.Form("page") 'depending on the users selection redirect to that page Select Case lcase(strURL) Case "home" Response.Redirect "index.php" Case "tutorials" Response.Redirect "tutorials.php" Case "downloads" Response.Redirect "downloads.php" End Select %>
Privacy Policy
|
Link to Us
|
Links