Refresh page after selecting dropdown

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghjk
    Contributor
    • Jan 2008
    • 250

    Refresh page after selecting dropdown

    I have a dropdown box and what i want to do is refresh the page when i select one of the options, but i need to keep that variable that i chose as it effects my sql statements.
  • harshmaul
    Recognized Expert Contributor
    • Jul 2007
    • 490

    #2
    Try this script (BTW i think this was a question more suited for the Javascript forums

    [HTML]<html>
    <head>
    <title>select test</title>
    </head>
    <body>

    <form name="FormName" action="export. html" method="GET">
    <select name="mydropdow n" OnChange="docum ent.FormName.su bmit();">
    <option value="Dell">De ll</option>
    <option value="HP">HP</option>
    <option value="Mac">Mac </option>
    </select>
    </form>
    </body>
    </html>[/HTML]

    Comment

    • TheServant
      Recognized Expert Top Contributor
      • Feb 2008
      • 1168

      #3
      Great! Alwayas wondered how to do that, and ur post is really simple! Cheers.

      Comment

      Working...