Here are 2 very simple asp pages that may give you some ideas.
Page 1
Page 2Code:<html> <head><title>Main Page</title> </head> <body> <% Dim color color = Request.QueryString("color") %> <form id="frm" action="page2.asp" method="post"> <select id="color" name="color"> <option value="">-- Select a color --</option> <option value="Red" <% If color = "Red" Then Response.Write(" selected")%>>Red</option> <option value="Green" <% If color = "Green" Then Response.Write(" selected")%>>Green</option> <option value="Blue" <% If color = "Blue" Then Response.Write(" selected")%>>Blue</option> </select> <input type="submit" id="submit" value="Submit" /> </form> </body> </html>
Code:<html> <head><title>Page 2</title> </head> <body> <% Dim color color = Request.Form("color") %> Your selected color is <%=color%> <br /> <a href="page1.asp?color=<%=color%>">Return to the main page</a> </body> </html>




Reply With Quote
