jeudi 10 septembre 2015

JAVASCRIPT could somebody help me with this code?

I'm trying to set a conditional page load on a Form Submit, following "If users select [x + y] option, send them to [x] page". I'm really not that familiar with JavaScript, how should i do?

Here's my HTML:

<div id="choice">
   Geographic area 
       <select name="geoarea" size="1">
            <option value="area"> Select </option>

            <option value="1"> Europe, America, Oceania </option>
            <option value="2"> Eastern Asia </option>
            <option value="3"> Middle East </option>    
       </select> <br>

   Type of itinerary 
      <select name="itinerary" size="1">
            <option value=""> Select </option> 

            <option value="4"> Arts-Cultural </option>
            <option value="5"> Religious </option>
            <option value="6"> Wine and Food </option>
            <option value="7"> Seaside </option>
            <option value="8"> Naturalistic </option>
      </select> <br>

   <form method="post" action="url_script">
      <input type="submit" name="continue" value="continue">

   </form>  
</div>

Aucun commentaire:

Enregistrer un commentaire