Jump to content

Choosen option doesn't remain selected in dropmenu


Recommended Posts

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%>


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...