Yammaski Posted January 7, 2011 Report Share Posted January 7, 2011 This is working, but the choosen option doesn't remain selected.<body><form action="" method="post"><select name="Frog" onchange="this.form.submit()"> <option value="20" selected="selected">20 x 10 cm</option> <option value="25">25 x 12 cm</option> <option value="30">30 x 15 cm</option> <option value="35">35 x 17 cm</option> <option value="40">40 x 20 cm</option> <option value="45">45 x 22 cm</option> <option value="50">50 x 25 cm</option></select></form> <%Dim VerzendkostVerzendkost=Request.Form("Frog")If Verzendkost < 35 ThenResponse.Write("1,40")ElseIf Verzendkost = 35 ThenResponse.Write("2,80")ElseIf Verzendkost = 40 ThenResponse.Write("2,80")ElseIf Verzendkost >40 ThenResponse.Write("5,90")End If%> </body> Link to comment Share on other sites More sharing options...
justsomeguy Posted January 7, 2011 Report Share Posted January 7, 2011 The code tells it to always select the first option. There's nothing there telling it to select anything else. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now