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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...