11521 sujets

JavaScript, DOM et API Web HTML5

Pages :
Bonjour, je suis novice et j'ai un souci:
j'ai deux pages: page.php et form.php.

page.php est composée de deux listes déroulantes liées (départements et villes).

Si aucun département n'est sélectionné il est impossible de sélectionner de ville (jusqu'ici tout va bien).

Une fois le clique 'OK' de page.php on est redirigé vers form.php pour finaliser le remplissage du formulaire. Or les éléments sélectionnés dans page.php de sont pas gardé par form.php.

j'aimerais donc que les éléments sélectionnés sur page.php soient gardé pour pré-remplir ces même champs sur form.php.

Voici donc le contenu de page.php:

<html>

    <body>
<section id="form" class="row">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <p style="text-align:center;font-size:18px;color:#FFFFFF;margin:15px 0;"><strong>Si ce produit vous int&eacute;resse contactez-nous</strong></p>
    </div>
    <form action="form.php" method="post">
        <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
            <div class="form-group">
                <select name="departement" id="departement" class="form-control">
                    <option value="0">S&eacute;lectionnez votre D&eacute;partement</option>
                    <option value="01">01 - Ain</option>
                    <option value="02">02 - Aisne</option>
                    <option value="03">03 - Allier</option>
                    <option value="04">04 - Alpes-de-Haute-Provence</option>
                    <option value="05">05 - Hautes-Alpes</option>
                    <option value="06">06 - Alpes-Maritimes</option>
                    <option value="07">07 - Ard&egrave;che</option>
                    <option value="08">08 - Ardennes</option>
                    <option value="09">09 - Ari&egrave;ge</option>
                    <option value="10">10 - Aube</option>
                    <option value="11">11 - Aude</option>
                    <option value="12">12 - Aveyron</option>
                    <option value="13">13 - Bouches-du-rh&ocirc;ne</option>
                    <option value="14">14 - Calvados</option>
                    <option value="15">15 - Cantal</option>
                    <option value="16">16 - Charente</option>
                    <option value="17">17 - Charente-Maritime</option>
                    <option value="18">18 - Cher</option>
                    <option value="19">19 - Corr&egrave;ze</option>
                    <option value="21">21 - C&ocirc;te-d'Or</option>
                    <option value="22">22 - C&ocirc;tes-d'Armor</option>
                    <option value="23">23 - Creuse</option>
                    <option value="24">24 - Dordogne</option>
                    <option value="25">25 - Doubs</option>
                    <option value="26">26 - Dr&ocirc;me</option>
                    <option value="27">27 - Eure</option>
                    <option value="28">28 - Eure-et-Loir</option>
                    <option value="29">29 - Finist&egrave;re</option>
                    <option value="30">30 - Gard</option>
                    <option value="31">31 - Haute-Garonne</option>
                    <option value="32">32 - Gers</option>
                    <option value="33">33 - Gironde</option>
                    <option value="34">34 - H&eacute;rault</option>
                    <option value="35">35 - IIlle-et-Vilaine</option>
                    <option value="36">36 - Indre</option>
                    <option value="37">37 - Indre-et-Loire</option>
                    <option value="38">38 - Is&egrave;re</option>
                    <option value="39">39 - Jura</option>
                    <option value="40">40 - Landes</option>
                    <option value="41">41 - Loir-et-Cher</option>
                    <option value="42">42 - Loire</option>
                    <option value="43">43 - Haute-Loire</option>
                    <option value="44">44 - Loire-Atlantique</option>
                    <option value="45">45 - Loiret</option>
                    <option value="46">46 - Lot</option>
                    <option value="47">47 - Lot-et-Garonne</option>
                    <option value="48">48 - Loz&egrave;re</option>
                    <option value="49">49 - Maine-et-Loire</option>
                    <option value="50">50 - Manche</option>
                    <option value="51">51 - Marne</option>
                    <option value="52">52 - Haute-Marne</option>
                    <option value="53">53 - Mayenne</option>
                    <option value="54">54 - Meurthe-et-Moselle</option>
                    <option value="55">55 - Meuse</option>
                    <option value="56">56 - Morbihan</option>
                    <option value="57">57 - Moselle</option>
                    <option value="58">58 - Ni&egrave;vre</option>
                    <option value="59">59 - Nord</option>
                    <option value="60">60 - Oise</option>
                    <option value="61">61 - Orne</option>
                    <option value="62">62 - Pas-de-Calais</option>
                    <option value="63">63 - Puy-de-D&ocirc;me</option>
                    <option value="64">64 - Pyr&eacute;n&eacute;es-Atlantiques</option>
                    <option value="65">65 - Haute-Pyr&eacute;n&eacute;es</option>
                    <option value="66">66 - Pyr&eacute;n&eacute;es-Orientales</option>
                    <option value="67">67 - Bas-Rhin</option>
                    <option value="68">68 - Haut-Rhin</option>
                    <option value="69">69 - Rh&ocirc;ne</option>
                    <option value="70">70 - Haute-Sa&ocirc;ne/option>
                    <option value="71">71 - Sa&ocirc;ne-et-Loire</option>
                    <option value="72">72 - Sarthe</option>
                    <option value="73">73 - Savoie</option>
                    <option value="74">74 - Haute-Savoie</option>
                    <option value="75">75 - Paris</option>
                    <option value="76">76 - Seine-Maritime</option>
                    <option value="77">77 - Seine-et-Marne</option>
                    <option value="78">78 - Yvelines</option>
                    <option value="79">79 - Deux-S&egrave;vres</option>
                    <option value="80">80 - Somme</option>
                    <option value="81">81 - Tarn</option>
                    <option value="82">82 - Tarn-et-Garonne</option>
                    <option value="83">83 - Var</option>
                    <option value="84">84 - Vaucluse</option>
                    <option value="85">85 - Vend&eacute;e</option>
                    <option value="86">86 - Vienne</option>
                    <option value="87">87 - Haute-Vienne</option>
                    <option value="88">88 - Vosges</option>
                    <option value="89">89 - Yonne</option>
                    <option value="90">90 - Territoire de Belfort</option>
                    <option value="91">91 - Essonne</option>
                    <option value="92">92 - Hauts-de-Seine</option>
                    <option value="93">93 - Seine-Saint-Denis</option>
                    <option value="94">94 - Val-de-Marne</option>
                    <option value="95">95 - Val-d'Oise</option>
                </select>
            </div>
        </div>
        <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
            <div class="form-group">
                <div id="ville" ></div>
            </div>
        </div>
        <div class="col-xs-12 col-sm-12 col-md-2 col-lg-2">
            <button type="submit" class="btn btn-default width">OK</button>
        </div>
    </form>
</section>
 
<!-- /form -->
 
  </main><!-- /primary -->
</div><!-- /wrapper-content -->
 
   
<script type="text/javascript">
function generation_liste2(){
        var dep={
            '01':["Belley","Bourg-en-Bresse","Nantua","Gex"],
            '02':["Chateau-Thierry","Laon","Saint-Quentin","Soissons","Vervins"],
            '03':["Montluçon","Moulins","Vichy"],
            '04':["Barcelonnette","Castellane","Digne-les-Bains","Forcalquier"],
            '05':["Briançon","Gap"],
            '06':["Grasse","Nice"],
            '07':["Largentière","Privas","Tournon-sur-Rhône"],
            '08':["Charleville-Mézières","Rethel","Sedan","Vouziers"],
            '09':["Foix","Pamiers","Saint-Girons"],
            '10':["Bar-sur-Aube","Nogent-sur-Seine","Troyes"],
            '11':["Carcassonne","Limoux","Narbonne"],
            '12':["Millau","Rodez","Villefranche-de-Rouergue"],
            '13':["Aix-en-Provence","Arles","Istres","Marseille"],
            '14':["Bayeux","Caen","Lisieux","Vire"],
            '15':["Aurillac","Mauriac","Saint-Flour"],
            '16':["Angoulême","Cognac","Confolens"],
            '17':["Jonzac","La Rochelle","Rochefort","Saint-Jean-d'Angély","Saintes"],
            '18':["Bourges","Saint-Amand-Montrond","Vierzon"],
            '19':["Brive-la-Gaillarde","Tulle","Ussel"],
            '21':["Beaune","Dijon","Montbard"],
            '22':["Dinan","Guingamp","Saint-Brieuc","Lannion"],
            '23':["Aubusson","Guéret"],
            '24':["Bergerac","Nontron","Périgueux","Sarlat-la-Canéda"],
            '25':["Besançon","Montbéliard","Pontarlier"],
            '26':["Die","Nyons","Valence"],
            '27':["Bernay","Évreux","Les Andelys"],
            '28':["Chartres","Châteaudun","Dreux","Nogent-le-Rotrou"],
            '29':["Brest","Châteaulin","Morlaix","Quimper"],
            '30':["Alès","Le Vigan","Nîmes"],
            '31':["Muret","Toulouse","Saint-Gaudens"],
            '32':["Auch","Condom","Mirande"],
            '33':["Arcachon","Blaye","Bordeaux","Langon","Lesparre-Médoc","Libourne"],
            '34':["Béziers","Montpellier","Lodève"],
            '35':["Fougères","Rennes","Redon","Saint-Malo"],
            '36':["Châteauroux","Le Blanc","La Châtre","Issoudun"],
            '37':["Chinon","Loches","Tours"],
            '38':["Grenoble","La Tour du Pin","Vienne"],
            '39':["Dole","Lons-le-Saunier","Saint-Claude"],
            '40':["Dax","Mont-de-Marsan"],
            '41':["Blois","Romorantin-Lanthenay","Vendôme"],
            '42':["Montbrison","Roanne","Saint-étienne"],
            '43':["Brioude","Le Puy-en-Velay","Yssingeaux"],
            '44':["Ancenis","Châteaubriant","Nantes","Saint-Nazaire"],
            '45':["Montargis","Orléans","Pithiviers"],
            '46':["Cahors","Figeac","Gourdon"],
            '47':["Agen","Marmande","Nérac","Villeneuve-sur-Lot"],
            '48':["Florac","Mende"],
            '49':["Angers","Cholet","Saumur","Segré"],
            '50':["Avranches","Cherbourg-Octevillet","Coutances","Saint-Lô"],
            '51':["Châlons-en-Champagne","épernay","Reims","Sainte-Menebould","Vitry-le-François"],
            '52':["Chaumont","Langres","Saint-Dizier"],
            '53':["Château-Gontier","Laval","Mayenne"],
            '54':["Briey","Lunéville","Nancy","Toul"],
            '55':["Bar-le-Duc","Commercy","Verdun"],
            '56':["Lorient","Pontivy","Vannes"],
            '57':["Boulay-Moselle","Château-Salins","Forbach","Metz","Sarrebourg","Sarreguemines","Thionville"],
            '58':["Château-Chinon","Clamecy","Cosne-Cours-sur-Loireh","Nevers"],
            '59':["Avesnes-sur-Helpe","Cambrai","Dunkerque","Douai","Lille","Valenciennes"],
            '60':["Beauvais","Clermont","Compiègne","Senlis"],
            '61':["Alençon","Argentan","Mortagne-au-Perche"],
            '62':["Arras","Béthune","Boulogne-sur-Mer","Calais","Lens","Montreuil-sur-Mer","Saint-Omer"],
            '63':["Ambert","Clermont-Ferrand","Issoire","Riom","Thiers"],
            '64':["Bayonne","Oloron-Sainte-Marie","Pau"],
            '65':["Argelès-Gazost","Bagnères-de-Bigorre","Tarbes"],
            '66':["Céret","Perpignan","Prades"],
            '67':["Haguenau","Molsheim","Saverne","Sélestat","Strasbourg","Wissembourg"],
            '68':["Altkirch","Colmar","Guebwiller","Mulhouse","Ribeauville","Thann"],
            '69':["Lyon","Villefranche-sur-Saône"],
            '70':["Lure","Vesoul"],
            '71':["Autun","Chalon-sur-Saône","Charolles","Louhans","Mâcon"],
            '72':["La Flèche","Le Mans","Mamers"],
            '73':["Albertville","Chambéry","Saint-Jean-de-Maurienne"],
            '74':["Annecy","Bonneville","Saint-Julien-en-Genevois","Thonon-les-Bains"],
            '75':["Paris"],
            '76':["Dieppe","Le Havre","Rouen"],
            '77':["Fontainebleau","Melun","Meaux","Torcy","Provins"],
            '78':["Mantes-la-Jolie","Rambouillet","Saint-Germain-en-Laye","Versailles"],
            '79':["Bressuire","Niort","Parthenay"],
            '80':["Abbeville","Amiens","Montdidier","Péronne"],
            '81':["Albi","Castres"],
            '82':["Castelsarrasin","Montauban"],
            '83':["Brignoles","Draguignan","Toulon"],
            '84':["Avignon","Apt","Carpentras"],
            '85':["Fontenay-le-Comte","La Roche-sur-Yon","Les-Sables-d'Olonne"],
            '86':["Châtellerault","Montmorillon","Poitiers"],
            '87':["Bellac","Limoges","Rochechouart"],
            '88':["Épinal","Neufchâteau","Saint-Dié-des-Vosges"],
            '89':["Auxerre","Avallon","Sens"],
            '90':["Belfort"],
            '91':["Évry","Palaiseau","Étampes"],
            '92':["Antony","Boulogne-Billancourt","Nanterre"],
            '93':["Bobigny","Le Raincy","Saint-Denis"],
            '94':["Créteil","L'Haÿ-les-Roses","Nogent-sur-Marne"],
            '95':["Argenteuil","Cergy","Pontoise","Sarcelles"]
        },
        choix=document.getElementById('departement').value,     // Le d?partement actuellement s?lectionn?e nous permet d'obtenir
        tab=(typeof dep[choix]!=='undefined')?dep[choix]:null,  // le tableau correspondant
        list='',elt,sel,opt,i;
  
        elt=document.getElementById('ville');
        while(elt.hasChildNodes())elt.removeChild(elt.lastChild); // Supprime la liste d?roulante
  
        // Nouvelle liste d?roulante
        sel=document.createElement('select');
        sel.className = "form-control";
         
        // Cr?? et ajoute l'?l?ment vide s?lectionn? par d?faut de la liste d?roulante
        opt=document.createElement('option');
        opt.setAttribute('value','');
        opt.appendChild(document.createTextNode('Selectionnez la ville la plus proche de chez vous'));
        sel.appendChild(opt);
  
        // Cr?? et ajoute les ?l?ments de la liste d?roulante
        if(tab){
            for(i=0;i<tab.length;i++){
                opt=document.createElement('option');
                opt.setAttribute('value',tab[i]);
                opt.appendChild(document.createTextNode(tab[i]));
                sel.appendChild(opt);
            }
        }
  
        elt.appendChild(sel);       // Ajoute la liste d?roulante dans le document
        sel.disabled=(tab==null);   // La d?sactiver si aucun choix n'a ?t? fait
    }
  
    window.onload=function(){ // Executer une fois le document charg?
        // Associer l'?venement onchange de la balise select
        document.getElementById('departement').onchange=generation_liste2;
  
        // Appeler la fonction pour mise ? jour de la deuxième liste
        generation_liste2();
    };
</script>
</body>
</html>


(suite en commentaire)[/i][/i]
et le contenu de form.php:

<html>
 
    <div class="row"> 
      <div class="col-lg-12">
        <form method="post" action="form.php">
          <div class="col-lg-6">
          <div class="form-group">
            <label>Nom Pr&eacute;nom</label>
            <input type="text" name="nomprenom" value="" class="form-control">
          </div>
          <div class="form-group">
            <label>Adresse email</label>
            <input type="email" name="email" value="" class="form-control">
          </div>
          </div>
          <div class="col-lg-6">
            <div class="form-group">
              <label>Num&eacute;ro de d&eacute;partement</label>
                <select name="departement" id="departement" class="form-control">
                    <option value="0">S&eacute;lectionnez votre D&eacute;partement</option>
                    <option value="01" <?php if (isset($_POST['departement']) && $_POST['departement']== "01"){echo "selected";} ?>>01 - Ain</option>
                    <option value="02" <?php if (isset($_POST['departement']) && $_POST['departement']== "02"){echo "selected";} ?>>02 - Aisne</option>
                    <option value="03" <?php if (isset($_POST['departement']) && $_POST['departement']== "03"){echo "selected";} ?>>03 - Allier</option>
                    <option value="04" <?php if (isset($_POST['departement']) && $_POST['departement']== "04"){echo "selected";} ?>>04 - Alpes-de-Haute-Provence</option>
                    <option value="05" <?php if (isset($_POST['departement']) && $_POST['departement']== "05"){echo "selected";} ?>>05 - Hautes-Alpes</option>
                    <option value="06" <?php if (isset($_POST['departement']) && $_POST['departement']== "06"){echo "selected";} ?>>06 - Alpes-Maritimes</option>
                    <option value="07" <?php if (isset($_POST['departement']) && $_POST['departement']== "07"){echo "selected";} ?>>07 - Ard&egrave;che</option>
                    <option value="08" <?php if (isset($_POST['departement']) && $_POST['departement']== "08"){echo "selected";} ?>>08 - Ardennes</option>
                    <option value="09" <?php if (isset($_POST['departement']) && $_POST['departement']== "09"){echo "selected";} ?>>09 - Ari&egrave;ge</option>
                    <option value="10" <?php if (isset($_POST['departement']) && $_POST['departement']== "10"){echo "selected";} ?>>10 - Aube</option>
                    <option value="11" <?php if (isset($_POST['departement']) && $_POST['departement']== "11"){echo "selected";} ?>>11 - Aude</option>
                    <option value="12" <?php if (isset($_POST['departement']) && $_POST['departement']== "12"){echo "selected";} ?>>12 - Aveyron</option>
                    <option value="13" <?php if (isset($_POST['departement']) && $_POST['departement']== "13"){echo "selected";} ?>>13 - Bouches-du-rh&ocirc;ne</option>
                    <option value="14" <?php if (isset($_POST['departement']) && $_POST['departement']== "14"){echo "selected";} ?>>14 - Calvados</option>
                    <option value="15" <?php if (isset($_POST['departement']) && $_POST['departement']== "15"){echo "selected";} ?>>15 - Cantal</option>
                    <option value="16" <?php if (isset($_POST['departement']) && $_POST['departement']== "16"){echo "selected";} ?>>16 - Charente</option>
                    <option value="17" <?php if (isset($_POST['departement']) && $_POST['departement']== "17"){echo "selected";} ?>>17 - Charente-Maritime</option>
                    <option value="18" <?php if (isset($_POST['departement']) && $_POST['departement']== "18"){echo "selected";} ?>>18 - Cher</option>
                    <option value="19" <?php if (isset($_POST['departement']) && $_POST['departement']== "19"){echo "selected";} ?>>19 - Corr&egrave;ze</option>
                    <option value="21" <?php if (isset($_POST['departement']) && $_POST['departement']== "21"){echo "selected";} ?>>21 - C&ocirc;te-d'Or</option>
                    <option value="22" <?php if (isset($_POST['departement']) && $_POST['departement']== "22"){echo "selected";} ?>>22 - C&ocirc;tes-d'Armor</option>
                    <option value="23" <?php if (isset($_POST['departement']) && $_POST['departement']== "23"){echo "selected";} ?>>23 - Creuse</option>
                    <option value="24" <?php if (isset($_POST['departement']) && $_POST['departement']== "24"){echo "selected";} ?>>24 - Dordogne</option>
                    <option value="25" <?php if (isset($_POST['departement']) && $_POST['departement']== "25"){echo "selected";} ?>>25 - Doubs</option>
                    <option value="26" <?php if (isset($_POST['departement']) && $_POST['departement']== "26"){echo "selected";} ?>>26 - Dr&ocirc;me</option>
                    <option value="27" <?php if (isset($_POST['departement']) && $_POST['departement']== "27"){echo "selected";} ?>>27 - Eure</option>
                    <option value="28" <?php if (isset($_POST['departement']) && $_POST['departement']== "28"){echo "selected";} ?>>28 - Eure-et-Loir</option>
                    <option value="29" <?php if (isset($_POST['departement']) && $_POST['departement']== "29"){echo "selected";} ?>>29 - Finist&egrave;re</option>
                    <option value="30" <?php if (isset($_POST['departement']) && $_POST['departement']== "30"){echo "selected";} ?>>30 - Gard</option>
                    <option value="31" <?php if (isset($_POST['departement']) && $_POST['departement']== "31"){echo "selected";} ?>>31 - Haute-Garonne</option>
                    <option value="32" <?php if (isset($_POST['departement']) && $_POST['departement']== "32"){echo "selected";} ?>>32 - Gers</option>
                    <option value="33" <?php if (isset($_POST['departement']) && $_POST['departement']== "33"){echo "selected";} ?>>33 - Gironde</option>
                    <option value="34" <?php if (isset($_POST['departement']) && $_POST['departement']== "34"){echo "selected";} ?>>34 - H&eacute;rault</option>
                    <option value="35" <?php if (isset($_POST['departement']) && $_POST['departement']== "35"){echo "selected";} ?>>35 - Ille-et-Vilaine</option>
                    <option value="36" <?php if (isset($_POST['departement']) && $_POST['departement']== "36"){echo "selected";} ?>>36 - Indre</option>
                    <option value="37" <?php if (isset($_POST['departement']) && $_POST['departement']== "37"){echo "selected";} ?>>37 - Indre-et-Loire</option>
                    <option value="38" <?php if (isset($_POST['departement']) && $_POST['departement']== "38"){echo "selected";} ?>>38 - Is&egrave;re</option>
                    <option value="39" <?php if (isset($_POST['departement']) && $_POST['departement']== "39"){echo "selected";} ?>>39 - Jura</option>
                    <option value="40" <?php if (isset($_POST['departement']) && $_POST['departement']== "40"){echo "selected";} ?>>40 - Landes</option>
                    <option value="41" <?php if (isset($_POST['departement']) && $_POST['departement']== "41"){echo "selected";} ?>>41 - Loir-et-Cher</option>
                    <option value="42" <?php if (isset($_POST['departement']) && $_POST['departement']== "42"){echo "selected";} ?>>42 - Loire</option>
                    <option value="43" <?php if (isset($_POST['departement']) && $_POST['departement']== "43"){echo "selected";} ?>>43 - Haute-Loire</option>
                    <option value="44" <?php if (isset($_POST['departement']) && $_POST['departement']== "44"){echo "selected";} ?>>44 - Loire-Atlantique</option>
                    <option value="45" <?php if (isset($_POST['departement']) && $_POST['departement']== "45"){echo "selected";} ?>>45 - Loiret</option>
                    <option value="46" <?php if (isset($_POST['departement']) && $_POST['departement']== "46"){echo "selected";} ?>>46 - Lot</option>
                    <option value="47" <?php if (isset($_POST['departement']) && $_POST['departement']== "47"){echo "selected";} ?>>47 - Lot-et-Garonne</option>
                    <option value="48" <?php if (isset($_POST['departement']) && $_POST['departement']== "48"){echo "selected";} ?>>48 - Loz&egrave;re</option>
                    <option value="49" <?php if (isset($_POST['departement']) && $_POST['departement']== "49"){echo "selected";} ?>>49 - Maine-et-Loire</option>
                    <option value="50" <?php if (isset($_POST['departement']) && $_POST['departement']== "50"){echo "selected";} ?>>50 - Manche</option>
                    <option value="51" <?php if (isset($_POST['departement']) && $_POST['departement']== "51"){echo "selected";} ?>>51 - Marne</option>
                    <option value="52" <?php if (isset($_POST['departement']) && $_POST['departement']== "52"){echo "selected";} ?>>52 - Haute-Marne</option>
                    <option value="53" <?php if (isset($_POST['departement']) && $_POST['departement']== "53"){echo "selected";} ?>>53 - Mayenne</option>
                    <option value="54" <?php if (isset($_POST['departement']) && $_POST['departement']== "54"){echo "selected";} ?>>54 - Meurthe-et-Moselle</option>
                    <option value="55" <?php if (isset($_POST['departement']) && $_POST['departement']== "55"){echo "selected";} ?>>55 - Meuse</option>
                    <option value="56" <?php if (isset($_POST['departement']) && $_POST['departement']== "56"){echo "selected";} ?>>56 - Morbihan</option>
                    <option value="57" <?php if (isset($_POST['departement']) && $_POST['departement']== "57"){echo "selected";} ?>>57 - Moselle</option>
                    <option value="58" <?php if (isset($_POST['departement']) && $_POST['departement']== "58"){echo "selected";} ?>>58 - Ni&egrave;vre</option>
                    <option value="59" <?php if (isset($_POST['departement']) && $_POST['departement']== "59"){echo "selected";} ?>>59 - Nord</option>
                    <option value="60" <?php if (isset($_POST['departement']) && $_POST['departement']== "60"){echo "selected";} ?>>60 - Oise</option>
                    <option value="61" <?php if (isset($_POST['departement']) && $_POST['departement']== "61"){echo "selected";} ?>>61 - Orne</option>
                    <option value="62" <?php if (isset($_POST['departement']) && $_POST['departement']== "62"){echo "selected";} ?>>62 - Pas-de-Calais</option>
                    <option value="63" <?php if (isset($_POST['departement']) && $_POST['departement']== "63"){echo "selected";} ?>>63 - Puy-de-D&ocirc;me</option>
                    <option value="64" <?php if (isset($_POST['departement']) && $_POST['departement']== "64"){echo "selected";} ?>>64 - Pyr&eacute;n&eacute;es-Atlantiques</option>
                    <option value="65" <?php if (isset($_POST['departement']) && $_POST['departement']== "65"){echo "selected";} ?>>65 - Haute-Pyr&eacute;n&eacute;es</option>
                    <option value="66" <?php if (isset($_POST['departement']) && $_POST['departement']== "66"){echo "selected";} ?>>66 - Pyr&eacute;n&eacute;es-Orientales</option>
                    <option value="67" <?php if (isset($_POST['departement']) && $_POST['departement']== "67"){echo "selected";} ?>>67 - Bas-Rhin</option>
                    <option value="68" <?php if (isset($_POST['departement']) && $_POST['departement']== "68"){echo "selected";} ?>>68 - Haut-Rhin</option>
                    <option value="69" <?php if (isset($_POST['departement']) && $_POST['departement']== "69"){echo "selected";} ?>>69 - Rh&ocirc;ne</option>
                    <option value="70" <?php if (isset($_POST['departement']) && $_POST['departement']== "70"){echo "selected";} ?>>70 - Haute-Sa&ocirc;ne</option>
                    <option value="71" <?php if (isset($_POST['departement']) && $_POST['departement']== "71"){echo "selected";} ?>>71 - Sa&ocirc;ne-et-Loire</option>
                    <option value="72" <?php if (isset($_POST['departement']) && $_POST['departement']== "72"){echo "selected";} ?>>72 - Sarthe</option>
                    <option value="73" <?php if (isset($_POST['departement']) && $_POST['departement']== "73"){echo "selected";} ?>>73 - Savoie</option>
                    <option value="74" <?php if (isset($_POST['departement']) && $_POST['departement']== "74"){echo "selected";} ?>>74 - Haute-Savoie</option>
                    <option value="75" <?php if (isset($_POST['departement']) && $_POST['departement']== "75"){echo "selected";} ?>>75 - Paris</option>
                    <option value="76" <?php if (isset($_POST['departement']) && $_POST['departement']== "76"){echo "selected";} ?>>76 - Seine-Maritime</option>
                    <option value="77" <?php if (isset($_POST['departement']) && $_POST['departement']== "77"){echo "selected";} ?>>77 - Seine-et-Marne</option>
                    <option value="78" <?php if (isset($_POST['departement']) && $_POST['departement']== "78"){echo "selected";} ?>>78 - Yvelines</option>
                    <option value="79" <?php if (isset($_POST['departement']) && $_POST['departement']== "79"){echo "selected";} ?>>79 - Deux-S&egrave;vres</option>
                    <option value="80" <?php if (isset($_POST['departement']) && $_POST['departement']== "80"){echo "selected";} ?>>80 - Somme</option>
                    <option value="81" <?php if (isset($_POST['departement']) && $_POST['departement']== "81"){echo "selected";} ?>>81 - Tarn</option>
                    <option value="82" <?php if (isset($_POST['departement']) && $_POST['departement']== "82"){echo "selected";} ?>>82 - Tarn-et-Garonne</option>
                    <option value="83" <?php if (isset($_POST['departement']) && $_POST['departement']== "83"){echo "selected";} ?>>83 - Var</option>
                    <option value="84" <?php if (isset($_POST['departement']) && $_POST['departement']== "84"){echo "selected";} ?>>84 - Vaucluse</option>
                    <option value="85" <?php if (isset($_POST['departement']) && $_POST['departement']== "85"){echo "selected";} ?>>85 - Vend&eacute;e</option>
                    <option value="86" <?php if (isset($_POST['departement']) && $_POST['departement']== "86"){echo "selected";} ?>>86 - Vienne</option>
                    <option value="87" <?php if (isset($_POST['departement']) && $_POST['departement']== "87"){echo "selected";} ?>>87 - Haute-Vienne</option>
                    <option value="88" <?php if (isset($_POST['departement']) && $_POST['departement']== "88"){echo "selected";} ?>>88 - Vosges</option>
                    <option value="89" <?php if (isset($_POST['departement']) && $_POST['departement']== "89"){echo "selected";} ?>>89 - Yonne</option>
                    <option value="90" <?php if (isset($_POST['departement']) && $_POST['departement']== "90"){echo "selected";} ?>>90 - Territoire de Belfort</option>
                    <option value="91" <?php if (isset($_POST['departement']) && $_POST['departement']== "91"){echo "selected";} ?>>91 - Essonne</option>
                    <option value="92" <?php if (isset($_POST['departement']) && $_POST['departement']== "92"){echo "selected";} ?>>92 - Hauts-de-Seine</option>
                    <option value="93" <?php if (isset($_POST['departement']) && $_POST['departement']== "93"){echo "selected";} ?>>93 - Seine-Saint-Denis</option>
                    <option value="94" <?php if (isset($_POST['departement']) && $_POST['departement']== "94"){echo "selected";} ?>>94 - Val-de-Marne</option>
                    <option value="95" <?php if (isset($_POST['departement']) && $_POST['departement']== "95"){echo "selected";} ?>>95 - Val-d'Oise</option>
                </select>
          </div>
          <div class="form-group">
            <label>Nom de la ville</label>
            <div name="ville" id="ville" ></div>
            <select name="ville" id="ville" class="form-control">
			  <option value="0">S&eacute;lectionnez votre ville</option>
              <option value="Belley" class="01" <?php if (isset($_POST['ville']) && $_POST['ville']== "Belley"){echo "selected";} ?>>Belley</option>
              <option value="Bourg-en-Bresse" class="01" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bourg-en-Bresse"){echo "selected";} ?>>Bourg-en-Bresse</option>
              <option value="Nantua" class="01" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nantua"){echo "selected";} ?>>Nantua</option>
              <option value="Gex" class="01" <?php if (isset($_POST['ville']) && $_POST['ville']== "Gex"){echo "selected";} ?>>Gex</option>
              <option value="Chateau-Thierry" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateau-Thierry"){echo "selected";} ?>>Ch&acirc;teau-Thierry</option>
              <option value="Laon" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Laon"){echo "selected";} ?>>Laon</option>
              <option value="Saint-Quentin" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Quentin"){echo "selected";} ?>>Saint-Quentin</option>
              <option value="Soissons" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Soissons"){echo "selected";} ?>>Soissons</option>
              <option value="Vervins" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vervins"){echo "selected";} ?>>Vervins</option>
              <option value="Montlucon" class="03" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montlucon"){echo "selected";} ?>>Montlu&ccedil;on</option>
              <option value="Moulins" class="03" <?php if (isset($_POST['ville']) && $_POST['ville']== "Moulins"){echo "selected";} ?>>Moulins</option>
              <option value="Vichy" class="03" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vichy"){echo "selected";} ?>>Vichy</option>
              <option value="Barcelonnette" class="04" <?php if (isset($_POST['ville']) && $_POST['ville']== "Barcelonnette"){echo "selected";} ?>>Barcelonnette</option>
              <option value="Castellane" class="04" <?php if (isset($_POST['ville']) && $_POST['ville']== "Castellane"){echo "selected";} ?>>Castellane</option>
              <option value="Digne-les-Bains" class="04" <?php if (isset($_POST['ville']) && $_POST['ville']== "Digne-les-Bains"){echo "selected";} ?>>Digne-les-Bains</option>
              <option value="Forcalquier" class="04" <?php if (isset($_POST['ville']) && $_POST['ville']== "Forcalquier"){echo "selected";} ?>>Forcalquier</option>
              <option value="Briancon" class="05" <?php if (isset($_POST['ville']) && $_POST['ville']== "Briancon"){echo "selected";} ?>>Brian&ccedil;on</option>
              <option value="Gap" class="05" <?php if (isset($_POST['ville']) && $_POST['ville']== "Gap"){echo "selected";} ?>>Gap</option>
              <option value="Grasse" class="06" <?php if (isset($_POST['ville']) && $_POST['ville']== "Grasse"){echo "selected";} ?>>Grasse</option>
              <option value="Nice" class="06" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nice"){echo "selected";} ?>>Nice</option>
              <option value="Largentiere" class="07" <?php if (isset($_POST['ville']) && $_POST['ville']== "Largentiere"){echo "selected";} ?>>Largenti&egrave;re</option>
              <option value="Privas" class="07" <?php if (isset($_POST['ville']) && $_POST['ville']== "Privas"){echo "selected";} ?>>Privas</option>
              <option value="Tournon-sur-Rhone" class="07" <?php if (isset($_POST['ville']) && $_POST['ville']== "Tournon-sur-Rhone"){echo "selected";} ?>>Tournon-sur-Rh&ocirc;ne</option>
              <option value="Charleville-Mezieres" class="08" <?php if (isset($_POST['ville']) && $_POST['ville']== "Charleville-Mezieres"){echo "selected";} ?>>Charleville-M&eacute;zi&egrave;res</option>
              <option value="Rethel" class="08" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rethel"){echo "selected";} ?>>Rethel</option>

              <option value="Sedan" class="08" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sedan"){echo "selected";} ?>>Sedan</option>
              <option value="Vouziers" class="08" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vouziers"){echo "selected";} ?>>Vouziers</option>
              <option value="Foix" class="09" <?php if (isset($_POST['ville']) && $_POST['ville']== "Foix"){echo "selected";} ?>>Foix</option>
              <option value="Pamiers" class="09" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pamiers"){echo "selected";} ?>>Pamiers</option>
              <option value="Saint-Girons" class="09" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Girons"){echo "selected";} ?>>Saint-Girons</option>
              <option value="Bar-sur-Aube" class="10" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bar-sur-Aube"){echo "selected";} ?>>Bar-sur-Aube</option>
              <option value="Nogent-sur-Seine" class="10" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nogent-sur-Seine"){echo "selected";} ?>>Nogent-sur-Seine</option>
              <option value="Troyes" class="10" <?php if (isset($_POST['ville']) && $_POST['ville']== "Troyes"){echo "selected";} ?>>Troyes</option>
              <option value="Carcassonne" class="11" <?php if (isset($_POST['ville']) && $_POST['ville']== "Carcassonne"){echo "selected";} ?>>Carcassonne</option>
              <option value="Limoux" class="11" <?php if (isset($_POST['ville']) && $_POST['ville']== "Limoux"){echo "selected";} ?>>Limoux</option>
              <option value="Narbonne" class="11" <?php if (isset($_POST['ville']) && $_POST['ville']== "Narbonne"){echo "selected";} ?>>Narbonne</option>
              <option value="Millau" class="12" <?php if (isset($_POST['ville']) && $_POST['ville']== "Millau"){echo "selected";} ?>>Millau</option>
              <option value="Rodez" class="12" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rodez"){echo "selected";} ?>>Rodez</option>
              <option value="Villefranche-de-Rouergue" class="12" <?php if (isset($_POST['ville']) && $_POST['ville']== "Villefranche-de-Rouergue"){echo "selected";} ?>>Villefranche-de-Rouergue</option>
              <option value="Aix-en-Provence" class="13" <?php if (isset($_POST['ville']) && $_POST['ville']== "Aix-en-Provence"){echo "selected";} ?>>Aix-en-Provence</option>
              <option value="Arles" class="13" <?php if (isset($_POST['ville']) && $_POST['ville']== "Arles"){echo "selected";} ?>>Arles</option>
              <option value="Istres" class="13" <?php if (isset($_POST['ville']) && $_POST['ville']== "Istres"){echo "selected";} ?>>Istres</option>
              <option value="Marseille" class="13" <?php if (isset($_POST['ville']) && $_POST['ville']== "Marseille"){echo "selected";} ?>>Marseille</option>
              <option value="Bayeux" class="14" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bayeux"){echo "selected";} ?>>Bayeux</option>
              <option value="Caen" class="14" <?php if (isset($_POST['ville']) && $_POST['ville']== "Caen"){echo "selected";} ?>>Caen</option>
              <option value="Lisieux" class="14" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lisieux"){echo "selected";} ?>>Lisieux</option>
              <option value="Vire" class="14" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vire"){echo "selected";} ?>>Vire</option>
              <option value="Aurillac" class="15" <?php if (isset($_POST['ville']) && $_POST['ville']== "Aurillac"){echo "selected";} ?>>Aurillac</option>
              <option value="Mauriac" class="15" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mauriac"){echo "selected";} ?>>Mauriac</option>
              <option value="Saint-Flour" class="15" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Flour"){echo "selected";} ?>>Saint-Flour</option>
              <option value="Angouleme" class="16" <?php if (isset($_POST['ville']) && $_POST['ville']== "Angouleme"){echo "selected";} ?>>Angoul&ecirc;me</option>
              <option value="Cognac" class="16" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cognac"){echo "selected";} ?>>Cognac</option>
              <option value="Confolens" class="16" <?php if (isset($_POST['ville']) && $_POST['ville']== "Confolens"){echo "selected";} ?>>Confolens</option>
              <option value="Jonzac" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "Jonzac"){echo "selected";} ?>>Jonzac</option>
              <option value="La Rochelle" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Rochelle"){echo "selected";} ?>>La Rochelle</option>
              <option value="Rochefort" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rochefort"){echo "selected";} ?>>Rochefort</option>
              <option value="Saint-Jean-d'Angely" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Jean-d'Angely"){echo "selected";} ?>>Saint-Jean-d'Ang&eacute;ly</option>
              <option value="Saintes" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saintes"){echo "selected";} ?>>Saintes</option>
              <option value="Bourges" class="18" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bourges"){echo "selected";} ?>>Bourges</option>
              <option value="Saint-Amand-Montrond" class="18" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Amand-Montrond"){echo "selected";} ?>>Saint-Amand-Montrond</option>
              <option value="Vierzon" class="18" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vierzon"){echo "selected";} ?>>Vierzon</option>
              <option value="Brive-la-Gaillarde" class="19" <?php if (isset($_POST['ville']) && $_POST['ville']== "Brive-la-Gaillarde"){echo "selected";} ?>>Brive-la-Gaillarde</option>
              <option value="Tulle" class="19" <?php if (isset($_POST['ville']) && $_POST['ville']== "Tulle"){echo "selected";} ?>>Tulle</option>
              <option value="Ussel" class="19" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ussel"){echo "selected";} ?>>Ussel</option>
              <option value="Beaune" class="21" <?php if (isset($_POST['ville']) && $_POST['ville']== "Beaune"){echo "selected";} ?>>Beaune</option>
              <option value="Dijon" class="21" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dijon"){echo "selected";} ?>>Dijon</option>
              <option value="Montbard" class="21" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montbard"){echo "selected";} ?>>Montbard</option>
              <option value="Dinan" class="22" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dinan"){echo "selected";} ?>>Dinan</option>
              <option value="Guingamp" class="22" <?php if (isset($_POST['ville']) && $_POST['ville']== "Guingamp"){echo "selected";} ?>>Guingamp</option>
              <option value="Saint-Brieuc" class="22" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Brieuc"){echo "selected";} ?>>Saint-Brieuc</option>
              <option value="Lannion" class="22" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lannion"){echo "selected";} ?>>Lannion</option>
              <option value="Aubusson" class="23" <?php if (isset($_POST['ville']) && $_POST['ville']== "Aubusson"){echo "selected";} ?>>Aubusson</option>
              <option value="Gueret" class="23" <?php if (isset($_POST['ville']) && $_POST['ville']== "Gueret"){echo "selected";} ?>>Gu&eacute;ret</option>
              <option value="Bergerac" class="24" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bergerac"){echo "selected";} ?>>Bergerac</option>
              <option value="Nontron" class="24" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nontron"){echo "selected";} ?>>Nontron</option>
              <option value="Perigueux" class="24" <?php if (isset($_POST['ville']) && $_POST['ville']== "Perigueux"){echo "selected";} ?>>P&eacute;rigueux</option>
              <option value="Sarlat-la-Caneda" class="24" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sarlat-la-Caneda"){echo "selected";} ?>>Sarlat-la-Can&eacute;da</option>
              <option value="Besancon" class="25" <?php if (isset($_POST['ville']) && $_POST['ville']== "Besancon"){echo "selected";} ?>>Besan&ccedil;on</option>
              <option value="Montbeliard" class="25" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montbeliard"){echo "selected";} ?>>Montb&eacute;liard</option>
              <option value="Pontarlier" class="25" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pontarlier"){echo "selected";} ?>>Pontarlier</option>
              <option value="Die" class="26" <?php if (isset($_POST['ville']) && $_POST['ville']== "Die"){echo "selected";} ?>>Die</option>
              <option value="Nyons" class="26" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nyons"){echo "selected";} ?>>Nyons</option>
              <option value="Valence" class="26" <?php if (isset($_POST['ville']) && $_POST['ville']== "Valence"){echo "selected";} ?>>Valence</option>
              <option value="Bernay" class="27" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bernay"){echo "selected";} ?>>Bernay</option>
              <option value="Evreux" class="27" <?php if (isset($_POST['ville']) && $_POST['ville']== "Evreux"){echo "selected";} ?>>&Eacute;vreux</option>
              <option value="Les Andelys" class="27" <?php if (isset($_POST['ville']) && $_POST['ville']== "Les Andelys"){echo "selected";} ?>>Les Andelys</option>
              <option value="Chartres" class="28" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chartres"){echo "selected";} ?>>Chartres</option>
              <option value="Chateaudun" class="28" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateaudun"){echo "selected";} ?>>Ch&acirc;teaudun</option>
              <option value="Dreux" class="28" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dreux"){echo "selected";} ?>>Dreux</option>
              <option value="Nogent-le-Rotrou" class="28" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nogent-le-Rotrou"){echo "selected";} ?>>Nogent-le-Rotrou</option>
              <option value="Brest" class="29" <?php if (isset($_POST['ville']) && $_POST['ville']== "Brest"){echo "selected";} ?>>Brest</option>
              <option value="Chateaulin" class="29" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateaulin"){echo "selected";} ?>>Ch&acirc;teaulin</option>
              <option value="Morlaix" class="29" <?php if (isset($_POST['ville']) && $_POST['ville']== "Morlaix"){echo "selected";} ?>>Morlaix</option>
              <option value="Quimper" class="29" <?php if (isset($_POST['ville']) && $_POST['ville']== "Quimper"){echo "selected";} ?>>Quimper</option>
              <option value="Ales" class="30" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ales"){echo "selected";} ?>>Al&egrave;s</option>
              <option value="Le Vigan" class="30" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Vigan"){echo "selected";} ?>>Le Vigan</option>
              <option value="Nimes" class="30" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nimes"){echo "selected";} ?>>N&icirc;mes</option>

Modifié par Valentin_SMARTSON (18 Jan 2016 - 14:24)
<option value="Muret" class="31" <?php if (isset($_POST['ville']) && $_POST['ville']== "Muret"){echo "selected";} ?>>Muret</option>
              <option value="Toulouse" class="31" <?php if (isset($_POST['ville']) && $_POST['ville']== "Toulouse"){echo "selected";} ?>>Toulouse</option>
              <option value="Saint-Gaudens" class="31" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Gaudens"){echo "selected";} ?>>Saint-Gaudens</option>
              <option value="Auch" class="32" <?php if (isset($_POST['ville']) && $_POST['ville']== "Auch"){echo "selected";} ?>>Auch</option>
              <option value="Condom" class="32" <?php if (isset($_POST['ville']) && $_POST['ville']== "Condom"){echo "selected";} ?>>Condom</option>
              <option value="Mirande" class="32" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mirande"){echo "selected";} ?>>Mirande</option>
              <option value="Arcachon" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Arcachon"){echo "selected";} ?>>Arcachon</option>
              <option value="Blaye" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Blaye"){echo "selected";} ?>>Blaye</option>
              <option value="Bordeaux" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bordeaux"){echo "selected";} ?>>Bordeaux</option>
              <option value="Langon" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Langon"){echo "selected";} ?>>Langon</option>
              <option value="Lesparre-Medoc" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lesparre-M&eacute;doc"){echo "selected";} ?>>Lesparre-M&eacute;doc</option>
              <option value="Libourne" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Libourne"){echo "selected";} ?>>Libourne</option>
              <option value="Beziers" class="34" <?php if (isset($_POST['ville']) && $_POST['ville']== "Beziers"){echo "selected";} ?>>B&eacute;ziers</option>
              <option value="Montpellier" class="34" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montpellier"){echo "selected";} ?>>Montpellier</option>
              <option value="Lodeve" class="34" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lodeve"){echo "selected";} ?>>Lod&egrave;ve</option>
              <option value="Fougeres" class="35" <?php if (isset($_POST['ville']) && $_POST['ville']== "Fougeres"){echo "selected";} ?>>Foug&egrave;res</option>
              <option value="Rennes" class="35" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rennes"){echo "selected";} ?>>Rennes</option>
              <option value="Redon" class="35" <?php if (isset($_POST['ville']) && $_POST['ville']== "Redon"){echo "selected";} ?>>Redon</option>
              <option value="Saint-Malo" class="35" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Malo"){echo "selected";} ?>>Saint-Malo</option>
              <option value="Chateauroux" class="36" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateauroux"){echo "selected";} ?>>Ch&acirc;teauroux</option>
              <option value="Le Blanc" class="36" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Blanc"){echo "selected";} ?>>Le Blanc</option>
              <option value="La Chatre" class="36" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Chatre"){echo "selected";} ?>>La Ch&acirc;tre</option>
              <option value="Issoudun" class="36" <?php if (isset($_POST['ville']) && $_POST['ville']== "Issoudun"){echo "selected";} ?>>Issoudun</option>
              <option value="Chinon" class="37" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chinon"){echo "selected";} ?>>Chinon</option>
              <option value="Loches" class="37" <?php if (isset($_POST['ville']) && $_POST['ville']== "Loches"){echo "selected";} ?>>Loches</option>
              <option value="Tours" class="37" <?php if (isset($_POST['ville']) && $_POST['ville']== "Tours"){echo "selected";} ?>>Tours</option>
              <option value="Grenoble" class="38" <?php if (isset($_POST['ville']) && $_POST['ville']== "Grenoble"){echo "selected";} ?>>Grenoble</option>
              <option value="La Tour du Pin" class="38" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Tour du Pin"){echo "selected";} ?>>La Tour du Pin</option>
              <option value="Vienne" class="38" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vienne"){echo "selected";} ?>>Vienne</option>
              <option value="Dole" class="39" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dole"){echo "selected";} ?>>Dole</option>
              <option value="Lons-le-Saunier" class="39" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lons-le-Saunier"){echo "selected";} ?>>Lons-le-Saunier</option>
              <option value="Saint-Claude" class="39" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Claude"){echo "selected";} ?>>Saint-Claude</option>
              <option value="Dax" class="40" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dax"){echo "selected";} ?>>Dax</option>
              <option value="Mont-de-Marsan" class="40" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mont-de-Marsan"){echo "selected";} ?>>Mont-de-Marsan</option>
              <option value="Blois" class="41" <?php if (isset($_POST['ville']) && $_POST['ville']== "Blois"){echo "selected";} ?>>Blois</option>
              <option value="Romorantin-Lanthenay" class="41" <?php if (isset($_POST['ville']) && $_POST['ville']== "Romorantin-Lanthenay"){echo "selected";} ?>>Romorantin-Lanthenay</option>
              <option value="Vendome" class="41" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vendome"){echo "selected";} ?>>Vend&ocirc;me</option>
              <option value="Montbrison" class="42" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montbrison"){echo "selected";} ?>>Montbrison</option>
              <option value="Roanne" class="42" <?php if (isset($_POST['ville']) && $_POST['ville']== "Roanne"){echo "selected";} ?>>Roanne</option>
              <option value="Saint-Etienne" class="42" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Etienne"){echo "selected";} ?>>Saint-&Eacute;tienne</option>
              <option value="Brioude" class="43" <?php if (isset($_POST['ville']) && $_POST['ville']== "Brioude"){echo "selected";} ?>>Brioude</option>
              <option value="Le Puy-en-Velay" class="43" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Puy-en-Velay"){echo "selected";} ?>>Le Puy-en-Velay</option>
              <option value="Yssingeaux" class="43" <?php if (isset($_POST['ville']) && $_POST['ville']== "Yssingeaux"){echo "selected";} ?>>Yssingeaux</option>
              <option value="Ancenis" class="44" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ancenis"){echo "selected";} ?>>Ancenis</option>
              <option value="Chateaubriant" class="44" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateaubriant"){echo "selected";} ?>>Ch&acirc;teaubriant</option>
              <option value="Nantes" class="44" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nantes"){echo "selected";} ?>>Nantes</option>
              <option value="Saint-Nazaire" class="44" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Nazaire"){echo "selected";} ?>>Saint-Nazaire</option>
              <option value="Montargis" class="45" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montargis"){echo "selected";} ?>>Montargis</option>
              <option value="Orleans" class="45" <?php if (isset($_POST['ville']) && $_POST['ville']== "Orleans"){echo "selected";} ?>>Orl&eacute;ans</option>
              <option value="Pithiviers" class="45" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pithiviers"){echo "selected";} ?>>Pithiviers</option>
              <option value="Cahors" class="46" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cahors"){echo "selected";} ?>>Cahors</option>
              <option value="Figeac" class="46" <?php if (isset($_POST['ville']) && $_POST['ville']== "Figeac"){echo "selected";} ?>>Figeac</option>
              <option value="Gourdon" class="46" <?php if (isset($_POST['ville']) && $_POST['ville']== "Gourdon"){echo "selected";} ?>>Gourdon</option>
              <option value="Agen" class="47" <?php if (isset($_POST['ville']) && $_POST['ville']== "Agen"){echo "selected";} ?>>Agen</option>
              <option value="Marmande" class="47" <?php if (isset($_POST['ville']) && $_POST['ville']== "Marmande"){echo "selected";} ?>>Marmande</option>
              <option value="Nerac" class="47" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nerac"){echo "selected";} ?>>N&eacute;rac</option>
              <option value="Villeneuve-sur-Lot" class="47" <?php if (isset($_POST['ville']) && $_POST['ville']== "Villeneuve-sur-Lot"){echo "selected";} ?>>Villeneuve-sur-Lot</option>
              <option value="Florac" class="48" <?php if (isset($_POST['ville']) && $_POST['ville']== "Florac"){echo "selected";} ?>>Florac</option>
              <option value="Mende" class="48" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mende"){echo "selected";} ?>>Mende</option>
              <option value="Angers" class="49" <?php if (isset($_POST['ville']) && $_POST['ville']== "Angers"){echo "selected";} ?>>Angers</option>
              <option value="Cholet" class="49" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cholet"){echo "selected";} ?>>Cholet</option>
              <option value="Saumur" class="49" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saumur"){echo "selected";} ?>>Saumur</option>
              <option value="Segre" class="49" <?php if (isset($_POST['ville']) && $_POST['ville']== "Segre"){echo "selected";} ?>>Segr&eacute;</option>
              <option value="Avranches" class="50" <?php if (isset($_POST['ville']) && $_POST['ville']== "Avranches"){echo "selected";} ?>>Avranches</option>
              <option value="Cherbourg-Octeville" class="50" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cherbourg-Octeville"){echo "selected";} ?>>Cherbourg-Octeville</option>
              <option value="Coutances" class="50" <?php if (isset($_POST['ville']) && $_POST['ville']== "Coutances"){echo "selected";} ?>>Coutances</option>
              <option value="Saint-Lo" class="50" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Lo"){echo "selected";} ?>>Saint-L&ocirc;</option>
              <option value="Chalons-en-Champagne" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ch&acirc;lons-en-Champagne"){echo "selected";} ?>>Ch&acirc;lons-en-Champagne</option>
              <option value="Epernay" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Epernay"){echo "selected";} ?>>&Eacute;pernay</option>
              <option value="Reims" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Reims"){echo "selected";} ?>>Reims</option>
              <option value="Sainte-Menebould" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sainte-Menebould"){echo "selected";} ?>>Sainte-Menebould</option>
              <option value="Vitry-le-Francois" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vitry-le-Francois"){echo "selected";} ?>>Vitry-le-Fran&ccedil;ois</option>
              <option value="Chaumont" class="52" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chaumont"){echo "selected";} ?>>Chaumont</option>
              <option value="Langres" class="52" <?php if (isset($_POST['ville']) && $_POST['ville']== "Langres"){echo "selected";} ?>>Langres</option>
              <option value="Saint-Dizier" class="52" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Dizier"){echo "selected";} ?>>Saint-Dizier</option>
              <option value="Chateau-Gontier" class="53" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateau-Gontier"){echo "selected";} ?>>Ch&acirc;teau-Gontier</option>
              <option value="Laval" class="53" <?php if (isset($_POST['ville']) && $_POST['ville']== "Laval"){echo "selected";} ?>>Laval</option>
              <option value="Mayenne" class="53" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mayenne"){echo "selected";} ?>>Mayenne</option>
              <option value="Briey" class="54" <?php if (isset($_POST['ville']) && $_POST['ville']== "Briey"){echo "selected";} ?>>Briey</option>
              <option value="Luneville" class="54" <?php if (isset($_POST['ville']) && $_POST['ville']== "Luneville"){echo "selected";} ?>>Lun&eacute;ville</option>
              <option value="Nancy" class="54" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nancy"){echo "selected";} ?>>Nancy</option>
              <option value="Toul" class="54" <?php if (isset($_POST['ville']) && $_POST['ville']== "Toul"){echo "selected";} ?>>Toul</option>
              <option value="Bar-le-Duc" class="55" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bar-le-Duc"){echo "selected";} ?>>Bar-le-Duc</option>
              <option value="Commercy" class="55" <?php if (isset($_POST['ville']) && $_POST['ville']== "Commercy"){echo "selected";} ?>>Commercy</option>
              <option value="Verdun" class="55" <?php if (isset($_POST['ville']) && $_POST['ville']== "Verdun"){echo "selected";} ?>>Verdun</option>
              <option value="Lorient" class="56" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lorient"){echo "selected";} ?>>Lorient</option>
              <option value="Pontivy" class="56" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pontivy"){echo "selected";} ?>>Pontivy</option>
              <option value="Vannes" class="56" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vannes"){echo "selected";} ?>>Vannes</option>
              <option value="Boulay-Moselle" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Boulay-Moselle"){echo "selected";} ?>>Boulay-Moselle</option>
              <option value="Chateau-Salins" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateau-Salins"){echo "selected";} ?>>Ch&acirc;teau-Salins</option>
              <option value="Forbach" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Forbach"){echo "selected";} ?>>Forbach</option>
              <option value="Metz" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Metz"){echo "selected";} ?>>Metz</option>
              <option value="Sarrebourg" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sarrebourg"){echo "selected";} ?>>Sarrebourg</option>
              <option value="Sarreguemines" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sarreguemines"){echo "selected";} ?>>Sarreguemines</option>
              <option value="Thionville" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Thionville"){echo "selected";} ?>>Thionville</option>
              <option value="Chateau-Chinon" class="58 <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateau-Chinon"){echo "selected";} ?>">Ch&acirc;teau-Chinon</option>
              <option value="Clamecy" class="58" <?php if (isset($_POST['ville']) && $_POST['ville']== "Clamecy"){echo "selected";} ?>>Clamecy</option>
              <option value="Cosne-Cours-sur-Loire" class="58" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cosne-Cours-sur-Loire"){echo "selected";} ?>>Cosne-Cours-sur-Loire</option>
              <option value="Nevers" class="58" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nevers"){echo "selected";} ?>>Nevers</option>
              <option value="Avesnes-sur-Helpe" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Avesnes-sur-Helpe"){echo "selected";} ?>>Avesnes-sur-Helpe</option>
              <option value="Cambrai" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cambrai"){echo "selected";} ?>>Cambrai</option>
              <option value="Dunkerque" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dunkerque"){echo "selected";} ?>>Dunkerque</option>
              <option value="Douai" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Douai"){echo "selected";} ?>>Douai</option>
              <option value="Lille" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lille"){echo "selected";} ?>>Lille</option>
              <option value="Valenciennes" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Valenciennes"){echo "selected";} ?>>Valenciennes</option>
              <option value="Beauvais" class="60" <?php if (isset($_POST['ville']) && $_POST['ville']== "Beauvais"){echo "selected";} ?>>Beauvais</option>
              <option value="Clermont" class="60" <?php if (isset($_POST['ville']) && $_POST['ville']== "Clermont"){echo "selected";} ?>>Clermont</option>
              <option value="Compiegne" class="60" <?php if (isset($_POST['ville']) && $_POST['ville']== "Compiegne"){echo "selected";} ?>>Compi&egrave;gne</option>
              <option value="Senlis" class="60" <?php if (isset($_POST['ville']) && $_POST['ville']== "Senlis"){echo "selected";} ?>>Senlis</option>
              <option value="Alencon" class="61" <?php if (isset($_POST['ville']) && $_POST['ville']== "Alencon"){echo "selected";} ?>>Alen&ccedil;on</option>
              <option value="Argentan" class="61" <?php if (isset($_POST['ville']) && $_POST['ville']== "Argentan"){echo "selected";} ?>>Argentan</option>
              <option value="Mortagne-au-Perche" class="61" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mortagne-au-Perche"){echo "selected";} ?>>Mortagne-au-Perche</option>
              <option value="Arras" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Arras"){echo "selected";} ?>>Arras</option>
              <option value="Bethune" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bethune"){echo "selected";} ?>>B&eacute;thune</option>
              <option value="Boulogne-sur-Mer" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Boulogne-sur-Mer"){echo "selected";} ?>>Boulogne-sur-Mer</option>
              <option value="Calais" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Calais"){echo "selected";} ?>>Calais</option>
              <option value="Lens" class="62 <?php if (isset($_POST['ville']) && $_POST['ville']== "Lens"){echo "selected";} ?>">Lens</option>
              <option value="Montreuil-sur-Mer" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montreuil-sur-Mer"){echo "selected";} ?>>Montreuil-sur-Mer</option>
              <option value="Saint-Omer" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Omer"){echo "selected";} ?>>Saint-Omer</option>
              <option value="Ambert" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ambert"){echo "selected";} ?>>Ambert</option>
              <option value="Clermont-Ferrand" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Clermont-Ferrand"){echo "selected";} ?>>Clermont-Ferrand</option>
              <option value="Issoire" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Issoire"){echo "selected";} ?>>Issoire</option>
              <option value="Riom" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Riom"){echo "selected";} ?>>Riom</option>
              <option value="Thiers" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Thiers"){echo "selected";} ?>>Thiers</option>
              <option value="Bayonne" class="64" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bayonne"){echo "selected";} ?>>Bayonne</option>
              <option value="Oloron-Sainte-Marie" class="64" <?php if (isset($_POST['ville']) && $_POST['ville']== "Oloron-Sainte-Marie"){echo "selected";} ?>>Oloron-Sainte-Marie</option>
              <option value="Pau" class="64" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pau"){echo "selected";} ?>>Pau</option>
              <option value="Argeles-Gazost" class="65" <?php if (isset($_POST['ville']) && $_POST['ville']== "Argeles-Gazost"){echo "selected";} ?>>Argel&egrave;s-Gazost</option>
              <option value="Bagneres-de-Bigorre" class="65" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bagneres-de-Bigorre"){echo "selected";} ?>>Bagn&egrave;res-de-Bigorre</option>
              <option value="Tarbes" class="65" <?php if (isset($_POST['ville']) && $_POST['ville']== "Tarbes"){echo "selected";} ?>>Tarbes</option>
              <option value="Ceret" class="66" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ceret"){echo "selected";} ?>>C&eacute;ret</option>
              <option value="Perpignan" class="66" <?php if (isset($_POST['ville']) && $_POST['ville']== "Perpignan"){echo "selected";} ?>>Perpignan</option>
              <option value="Prades" class="66" <?php if (isset($_POST['ville']) && $_POST['ville']== "Prades"){echo "selected";} ?>>Prades</option>
              <option value="Haguenau" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Haguenau"){echo "selected";} ?>>Haguenau</option>
              <option value="Molsheim" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Molsheim"){echo "selected";} ?>>Molsheim</option>
              <option value="Saverne" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saverne"){echo "selected";} ?>>Saverne</option>
              <option value="Selestat" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Selestat"){echo "selected";} ?>>S&eacute;lestat</option>
              <option value="Strasbourg" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Strasbourg"){echo "selected";} ?>>Strasbourg</option>
              <option value="Wissembourg" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Wissembourg"){echo "selected";} ?>>Wissembourg</option>
              <option value="Altkirch" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Altkirch"){echo "selected";} ?>>Altkirch</option>
              <option value="Colmar" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Colmar"){echo "selected";} ?>>Colmar</option>
              <option value="Guebwiller" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Guebwiller"){echo "selected";} ?>>Guebwiller</option>
              <option value="Mulhouse" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mulhouse"){echo "selected";} ?>>Mulhouse</option>
              <option value="Ribeauville" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ribeauville"){echo "selected";} ?>>Ribeauville</option>
              <option value="Thann" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Thann"){echo "selected";} ?>>Thann</option>
              <option value="Lyon" class="69" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lyon"){echo "selected";} ?>>Lyon</option>
              <option value="Villefranche-sur-Saone" class="69" <?php if (isset($_POST['ville']) && $_POST['ville']== "Villefranche-sur-Sa&ocirc;ne"){echo "selected";} ?>>Villefranche-sur-Sa&ocirc;ne</option>
              <option value="Lure" class="70" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lure"){echo "selected";} ?>>Lure</option>
              <option value="Vesoul" class="70" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vesoul"){echo "selected";} ?>>Vesoul</option>
              <option value="Autun" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Autun"){echo "selected";} ?>>Autun</option>
              <option value="Chalon-sur-Saone" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chalon-sur-Saone"){echo "selected";} ?>>Chalon-sur-Sa&ocirc;ne</option>
              <option value="Charolles" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Charolles"){echo "selected";} ?>>Charolles</option>
              <option value="Louhans" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Louhans"){echo "selected";} ?>>Louhans</option>
              <option value="M&acirc;con" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Macon"){echo "selected";} ?>>M&acirc;con</option>
              <option value="La Fleche" class="72" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Fleche"){echo "selected";} ?>>La Fl&egrave;che</option>
              <option value="Le Mans" class="72" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Mans"){echo "selected";} ?>>Le Mans</option>
              <option value="Mamers" class="72" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mamers"){echo "selected";} ?>>Mamers</option>
              <option value="Albertville" class="73" <?php if (isset($_POST['ville']) && $_POST['ville']== "Albertville"){echo "selected";} ?>>Albertville</option>
              <option value="Chambery" class="73" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chambery"){echo "selected";} ?>>Chamb&eacute;ry</option>
              <option value="Saint-Jean-de-Maurienne" class="73" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Jean-de-Maurienne"){echo "selected";} ?>>Saint-Jean-de-Maurienne</option>
              <option value="Annecy" class="74" <?php if (isset($_POST['ville']) && $_POST['ville']== "Annecy"){echo "selected";} ?>>Annecy</option>
              <option value="Bonneville" class="74" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bonneville"){echo "selected";} ?>>Bonneville</option>
              <option value="Saint-Julien-en-Genevois" class="74" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Julien-en-Genevois"){echo "selected";} ?>>Saint-Julien-en-Genevois</option>
              <option value="Thonon-les-Bains" class="74" <?php if (isset($_POST['ville']) && $_POST['ville']== "Thonon-les-Bains"){echo "selected";} ?>>Thonon-les-Bains</option>
              <option value="Paris" class="75" <?php if (isset($_POST['ville']) && $_POST['ville']== "Paris"){echo "selected";} ?>>Paris</option>
              <option value="Dieppe" class="76" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dieppe"){echo "selected";} ?>>Dieppe</option>
              <option value="Le Havre" class="76" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Havre"){echo "selected";} ?>>Le Havre</option>
              <option value="Rouen" class="76" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rouen"){echo "selected";} ?>>Rouen</option>
              <option value="Fontainebleau" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Fontainebleau"){echo "selected";} ?>>Fontainebleau</option>
              <option value="Melun" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Melun"){echo "selected";} ?>>Melun</option>
              <option value="Meaux" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Meaux"){echo "selected";} ?>>Meaux</option>
              <option value="Torcy" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Torcy"){echo "selected";} ?>>Torcy</option>
              <option value="Provins" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Provins"){echo "selected";} ?>>Provins</option>
              <option value="Mantes-la-Jolie" class="78" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mantes-la-Jolie"){echo "selected";} ?>>Mantes-la-Jolie</option>
              <option value="Rambouillet" class="78" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rambouillet"){echo "selected";} ?>>Rambouillet</option>
              <option value="Saint-Germain-en-Laye" class="78" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Germain-en-Laye"){echo "selected";} ?>>Saint-Germain-en-Laye</option>
              <option value="Versailles" class="78" <?php if (isset($_POST['ville']) && $_POST['ville']== "Versailles"){echo "selected";} ?>>Versailles</option>
              <option value="Bressuire" class="79" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bressuire"){echo "selected";} ?>>Bressuire</option>
              <option value="Niort" class="79" <?php if (isset($_POST['ville']) && $_POST['ville']== "Niort"){echo "selected";} ?>>Niort</option>
              <option value="Parthenay" class="79" <?php if (isset($_POST['ville']) && $_POST['ville']== "Parthenay"){echo "selected";} ?>>Parthenay</option>
              <option value="Abbeville" class="80" <?php if (isset($_POST['ville']) && $_POST['ville']== "Abbeville"){echo "selected";} ?>>Abbeville</option>
              <option value="Amiens" class="80" <?php if (isset($_POST['ville']) && $_POST['ville']== "Amiens"){echo "selected";} ?>>Amiens</option>
              <option value="Montdidier" class="80" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montdidier"){echo "selected";} ?>>Montdidier</option>
              <option value="Peronne" class="80" <?php if (isset($_POST['ville']) && $_POST['ville']== "Peronne"){echo "selected";} ?>>P&eacute;ronne</option>
              <option value="Albi" class="81" <?php if (isset($_POST['ville']) && $_POST['ville']== "Albi"){echo "selected";} ?>>Albi</option>
              <option value="Castres" class="81" <?php if (isset($_POST['ville']) && $_POST['ville']== "Castres"){echo "selected";} ?>>Castres</option>
              <option value="Castelsarrasin" class="82" <?php if (isset($_POST['ville']) && $_POST['ville']== "Castelsarrasin"){echo "selected";} ?>>Castelsarrasin</option>
              <option value="Montauban" class="82" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montauban"){echo "selected";} ?>>Montauban</option>
              <option value="Brignoles" class="83" <?php if (isset($_POST['ville']) && $_POST['ville']== "Brignoles"){echo "selected";} ?>>Brignoles</option>
              <option value="Draguignan" class="83" <?php if (isset($_POST['ville']) && $_POST['ville']== "Draguignan"){echo "selected";} ?>>Draguignan</option>
              <option value="Toulon" class="83" <?php if (isset($_POST['ville']) && $_POST['ville']== "Toulon"){echo "selected";} ?>>Toulon</option>
              <option value="Avignon" class="84" <?php if (isset($_POST['ville']) && $_POST['ville']== "Avignon"){echo "selected";} ?>>Avignon</option>
              <option value="Apt" class="84" <?php if (isset($_POST['ville']) && $_POST['ville']== "Apt"){echo "selected";} ?>>Apt</option>
              <option value="Carpentras" class="84" <?php if (isset($_POST['ville']) && $_POST['ville']== "Carpentras"){echo "selected";} ?>>Carpentras</option>
              <option value="Fontenay-le-Comte" class="85" <?php if (isset($_POST['ville']) && $_POST['ville']== "Fontenay-le-Comte"){echo "selected";} ?>>Fontenay-le-Comte</option>
              <option value="La Roche-sur-Yon" class="85" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Roche-sur-Yon"){echo "selected";} ?>>La Roche-sur-Yon</option>
              <option value="Les-Sables-d'Olonne" class="85" <?php if (isset($_POST['ville']) && $_POST['ville']== "Les-Sables-d'Olonne"){echo "selected";} ?>>Les-Sables-d'Olonne</option>
              <option value="Chatellerault" class="86" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chatellerault"){echo "selected";} ?>>Ch&acirc;tellerault</option>
              <option value="Montmorillon" class="86" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montmorillon"){echo "selected";} ?>>Montmorillon</option>
              <option value="Poitiers" class="86" <?php if (isset($_POST['ville']) && $_POST['ville']== "Poitiers"){echo "selected";} ?>>Poitiers</option>
              <option value="Bellac" class="87" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bellac"){echo "selected";} ?>>Bellac</option>
              <option value="Limoges" class="87" <?php if (isset($_POST['ville']) && $_POST['ville']== "Limoges"){echo "selected";} ?>>Limoges</option>
              <option value="Rochechouart" class="87" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rochechouart"){echo "selected";} ?>>Rochechouart</option>
              <option value="Epinal" class="88" <?php if (isset($_POST['ville']) && $_POST['ville']== "Epinal"){echo "selected";} ?>>&Eacute;pinal</option>
              <option value="Neufchateau" class="88" <?php if (isset($_POST['ville']) && $_POST['ville']== "Neufchateau"){echo "selected";} ?>>Neufch&acirc;teau</option>
              <option value="Saint-Die-des-Vosges" class="88" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Di&eacute;-des-Vosges"){echo "selected";} ?>>Saint-Di&eacute;-des-Vosges</option>
              <option value="Auxerre" class="89" <?php if (isset($_POST['ville']) && $_POST['ville']== "Auxerre"){echo "selected";} ?>>Auxerre</option>
              <option value="Avallon" class="89" <?php if (isset($_POST['ville']) && $_POST['ville']== "Avallon"){echo "selected";} ?>>Avallon</option>
              <option value="Sens" class="89" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sens"){echo "selected";} ?>>Sens</option>
              <option value="Belfort" class="90" <?php if (isset($_POST['ville']) && $_POST['ville']== "Belfort"){echo "selected";} ?>>Belfort</option>
              <option value="Evry" class="91" <?php if (isset($_POST['ville']) && $_POST['ville']== "Evry"){echo "selected";} ?>>&Eacute;vry</option>
              <option value="Palaiseau" class="91" <?php if (isset($_POST['ville']) && $_POST['ville']== "Palaiseau"){echo "selected";} ?>>Palaiseau</option>
              <option value="Etampes" class="91" <?php if (isset($_POST['ville']) && $_POST['ville']== "Etampes"){echo "selected";} ?>>&Eacute;tampes</option>
              <option value="Antony" class="92" <?php if (isset($_POST['ville']) && $_POST['ville']== "Antony"){echo "selected";} ?>>Antony</option>
              <option value="Boulogne-Billancourt" class="92" <?php if (isset($_POST['ville']) && $_POST['ville']== "Boulogne-Billancourt"){echo "selected";} ?>>Boulogne-Billancourt</option>
              <option value="Nanterre" class="92" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nanterre"){echo "selected";} ?>>Nanterre</option>
              <option value="Bobigny" class="93" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bobigny"){echo "selected";} ?>>Bobigny</option>
              <option value="Le Raincy" class="93" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Raincy"){echo "selected";} ?>>Le Raincy</option>
              <option value="Saint-Denis" class="93" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Denis"){echo "selected";} ?>>Saint-Denis</option>
              <option value="Creteil" class="94" <?php if (isset($_POST['ville']) && $_POST['ville']== "Creteil"){echo "selected";} ?>>Cr&eacute;teil</option>
              <option value="L'Hay-les-Roses" class="94" <?php if (isset($_POST['ville']) && $_POST['ville']== "L'Hay;-les-Roses"){echo "selected";} ?>>L'Ha&yuml;-les-Roses</option>
              <option value="Nogent-sur-Marne" class="94" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nogent-sur-Marne"){echo "selected";} ?>>Nogent-sur-Marne</option>
              <option value="Argenteuil" class="95" <?php if (isset($_POST['ville']) && $_POST['ville']== "Argenteuil"){echo "selected";} ?>>Argenteuil</option>
              <option value="Cergy" class="95" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cergy"){echo "selected";} ?>>Cergy</option>
              <option value="Pontoise" class="95" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pontoise"){echo "selected";} ?>>Pontoise</option>
              <option value="Sarcelles" class="95" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sarcelles"){echo "selected";} ?>>Sarcelles</option>
		    </select>
            
          </div>

          </div>
         <div class="col-lg-12">
          <button type="submit" name="contact" class="btn btn-default" style="margin-bottom:10px;width:100%;background:#E6001D;color:white;font-weight:bold;text-transform: uppercase;">Envoyez</button>
          </div>
        </form>
      </div>
    </div>
  </section>
</div>
</html>


Si vous avez des pistes je vous en remercie d'avance !
Modifié par Valentin_SMARTSON (18 Jan 2016 - 14:23)
Modérateur
Bonjour,

Pour que form.php puisse récupérer la ville (via les $_POST["ville"] que tu as mis dans ton code), il faudrait que le <select> pour les villes que tu crées dans page.php en javascript aient un champ "name" avec la valeur "ville". Or, ce n'est pas le cas.

Ajoute simplement sel.name = "ville"; après sel.className = "form-control"; dans le script en bas de la page page.php et ça devrait tomber en marche.

EDIT : tu as un deuxième problème à régler. Dans page.php, les noms des villes sont tel quel (exemple Montluçon), tandis que dans form.php tu testes les noms de ville sans caractère diacritique (exemple : Montlucon). Il faut que tu emploies la même méthode de codage dans les deux fichiers.

Amicalement,
Modifié par parsimonhi (18 Jan 2016 - 12:51)
Merci de la réponse,
j'ai effectué les modifications mais cela ne fonctionne malheureusement toujours pas:
Ni le département, ni la ville ne sont récupérés lorsque que l'on arrive sur form.php.

Je me demande si lors du passage de page.php à form.php il ne s'effectuerais pas un refresh qui entraînerais la perte donc des champs sélectionnés.. Si c'est cela, comment serait-il possible d'y remédier ? Merci
Modérateur
Bonjour,

J'ai pris le code que tu as donné pour page.php et form.php, et ça marche très bien chez moi.

Fais un test au début de ton fichier form.php pour voir si "departement" et "ville" sont définis ou pas. Ajoute juste après ta balise body :
<?php
if (isset($_POST['departement'])) print "Département : ".$_POST['departement']."<br>";
else "Département indéfini<br>";
if (isset($_POST['ville'])) print "Ville : ".$_POST['ville']."<br>";
else "Ville indéfinie<br>";
?>


Amicalement,
Non, rien ni fait ça ne fonctionne pas:
les éléments ne sont pas gardés je dois les récupérés moi même dans les listes une fois sur form.php.
Modérateur
Bonjour,

Il t'affiche quoi avec le code de test que je t'ai donné en haut de ta page ? "Département indéfini" et "Ville indéfinie" ? Ou bien autre chose ?

EDIT : je viens de m'apercevoir que j'ai oublié des "print" dans mon code de test. Le revoici en mieux :
<?php
if (isset($_POST['departement'])) print "Département : ".$_POST['departement']."<br>";
else print "Département indéfini<br>";
if (isset($_POST['ville'])) print "Ville : ".$_POST['ville']."<br>";
else print "Ville indéfinie<br>";
?>


Amicalement,
Modifié par parsimonhi (18 Jan 2016 - 14:50)
Modérateur
Bonjour,

Tu as des erreurs de syntaxe plus haut dans ton code (celui de form.php).

Difficile sans ce code de savoir où exactement.

Amicalement,
Modifié par parsimonhi (18 Jan 2016 - 15:01)
A vrai dire très honnêtement je suis perdu..
Voici le code de form.php (première partie):
<html>
	<body>
    <div class="row">
      <div class="col-lg-12">
        <form method="post" action="form.php">
          <div class="col-lg-6">
          <div class="form-group">
            <label>Nom Pr&eacute;nom</label>
            <input type="text" name="nomprenom" value="" class="form-control">
          </div>
          <div class="form-group">
            <label>Adresse email</label>
            <input type="email" name="email" value="" class="form-control">
          </div>
          </div>
          <div class="col-lg-6">
            <div class="form-group">
              <label>Num&eacute;ro de d&eacute;partement</label>
                <select name="departement" id="departement" class="form-control">
                    <option value="0">S&eacute;lectionnez votre D&eacute;partement</option>
                    <option value="01" <?php if (isset($_POST['departement']) && $_POST['departement']== "01"){echo "selected";} ?>>01 - Ain</option>
                    <option value="02" <?php if (isset($_POST['departement']) && $_POST['departement']== "02"){echo "selected";} ?>>02 - Aisne</option>
                    <option value="03" <?php if (isset($_POST['departement']) && $_POST['departement']== "03"){echo "selected";} ?>>03 - Allier</option>
                    <option value="04" <?php if (isset($_POST['departement']) && $_POST['departement']== "04"){echo "selected";} ?>>04 - Alpes-de-Haute-Provence</option>
                    <option value="05" <?php if (isset($_POST['departement']) && $_POST['departement']== "05"){echo "selected";} ?>>05 - Hautes-Alpes</option>
                    <option value="06" <?php if (isset($_POST['departement']) && $_POST['departement']== "06"){echo "selected";} ?>>06 - Alpes-Maritimes</option>
                    <option value="07" <?php if (isset($_POST['departement']) && $_POST['departement']== "07"){echo "selected";} ?>>07 - Ard&egrave;che</option>
                    <option value="08" <?php if (isset($_POST['departement']) && $_POST['departement']== "08"){echo "selected";} ?>>08 - Ardennes</option>
                    <option value="09" <?php if (isset($_POST['departement']) && $_POST['departement']== "09"){echo "selected";} ?>>09 - Ari&egrave;ge</option>
                    <option value="10" <?php if (isset($_POST['departement']) && $_POST['departement']== "10"){echo "selected";} ?>>10 - Aube</option>
                    <option value="11" <?php if (isset($_POST['departement']) && $_POST['departement']== "11"){echo "selected";} ?>>11 - Aude</option>
                    <option value="12" <?php if (isset($_POST['departement']) && $_POST['departement']== "12"){echo "selected";} ?>>12 - Aveyron</option>
                    <option value="13" <?php if (isset($_POST['departement']) && $_POST['departement']== "13"){echo "selected";} ?>>13 - Bouches-du-rh&ocirc;ne</option>
                    <option value="14" <?php if (isset($_POST['departement']) && $_POST['departement']== "14"){echo "selected";} ?>>14 - Calvados</option>
                    <option value="15" <?php if (isset($_POST['departement']) && $_POST['departement']== "15"){echo "selected";} ?>>15 - Cantal</option>
                    <option value="16" <?php if (isset($_POST['departement']) && $_POST['departement']== "16"){echo "selected";} ?>>16 - Charente</option>
                    <option value="17" <?php if (isset($_POST['departement']) && $_POST['departement']== "17"){echo "selected";} ?>>17 - Charente-Maritime</option>
                    <option value="18" <?php if (isset($_POST['departement']) && $_POST['departement']== "18"){echo "selected";} ?>>18 - Cher</option>
                    <option value="19" <?php if (isset($_POST['departement']) && $_POST['departement']== "19"){echo "selected";} ?>>19 - Corr&egrave;ze</option>
                    <option value="21" <?php if (isset($_POST['departement']) && $_POST['departement']== "21"){echo "selected";} ?>>21 - C&ocirc;te-d'Or</option>
                    <option value="22" <?php if (isset($_POST['departement']) && $_POST['departement']== "22"){echo "selected";} ?>>22 - C&ocirc;tes-d'Armor</option>
                    <option value="23" <?php if (isset($_POST['departement']) && $_POST['departement']== "23"){echo "selected";} ?>>23 - Creuse</option>
                    <option value="24" <?php if (isset($_POST['departement']) && $_POST['departement']== "24"){echo "selected";} ?>>24 - Dordogne</option>
                    <option value="25" <?php if (isset($_POST['departement']) && $_POST['departement']== "25"){echo "selected";} ?>>25 - Doubs</option>
                    <option value="26" <?php if (isset($_POST['departement']) && $_POST['departement']== "26"){echo "selected";} ?>>26 - Dr&ocirc;me</option>
                    <option value="27" <?php if (isset($_POST['departement']) && $_POST['departement']== "27"){echo "selected";} ?>>27 - Eure</option>
                    <option value="28" <?php if (isset($_POST['departement']) && $_POST['departement']== "28"){echo "selected";} ?>>28 - Eure-et-Loir</option>
                    <option value="29" <?php if (isset($_POST['departement']) && $_POST['departement']== "29"){echo "selected";} ?>>29 - Finist&egrave;re</option>
                    <option value="30" <?php if (isset($_POST['departement']) && $_POST['departement']== "30"){echo "selected";} ?>>30 - Gard</option>
                    <option value="31" <?php if (isset($_POST['departement']) && $_POST['departement']== "31"){echo "selected";} ?>>31 - Haute-Garonne</option>
                    <option value="32" <?php if (isset($_POST['departement']) && $_POST['departement']== "32"){echo "selected";} ?>>32 - Gers</option>
                    <option value="33" <?php if (isset($_POST['departement']) && $_POST['departement']== "33"){echo "selected";} ?>>33 - Gironde</option>
                    <option value="34" <?php if (isset($_POST['departement']) && $_POST['departement']== "34"){echo "selected";} ?>>34 - H&eacute;rault</option>
                    <option value="35" <?php if (isset($_POST['departement']) && $_POST['departement']== "35"){echo "selected";} ?>>35 - Ille-et-Vilaine</option>
                    <option value="36" <?php if (isset($_POST['departement']) && $_POST['departement']== "36"){echo "selected";} ?>>36 - Indre</option>
                    <option value="37" <?php if (isset($_POST['departement']) && $_POST['departement']== "37"){echo "selected";} ?>>37 - Indre-et-Loire</option>
                    <option value="38" <?php if (isset($_POST['departement']) && $_POST['departement']== "38"){echo "selected";} ?>>38 - Is&egrave;re</option>
                    <option value="39" <?php if (isset($_POST['departement']) && $_POST['departement']== "39"){echo "selected";} ?>>39 - Jura</option>
                    <option value="40" <?php if (isset($_POST['departement']) && $_POST['departement']== "40"){echo "selected";} ?>>40 - Landes</option>
                    <option value="41" <?php if (isset($_POST['departement']) && $_POST['departement']== "41"){echo "selected";} ?>>41 - Loir-et-Cher</option>
                    <option value="42" <?php if (isset($_POST['departement']) && $_POST['departement']== "42"){echo "selected";} ?>>42 - Loire</option>
                    <option value="43" <?php if (isset($_POST['departement']) && $_POST['departement']== "43"){echo "selected";} ?>>43 - Haute-Loire</option>
                    <option value="44" <?php if (isset($_POST['departement']) && $_POST['departement']== "44"){echo "selected";} ?>>44 - Loire-Atlantique</option>
                    <option value="45" <?php if (isset($_POST['departement']) && $_POST['departement']== "45"){echo "selected";} ?>>45 - Loiret</option>
                    <option value="46" <?php if (isset($_POST['departement']) && $_POST['departement']== "46"){echo "selected";} ?>>46 - Lot</option>
                    <option value="47" <?php if (isset($_POST['departement']) && $_POST['departement']== "47"){echo "selected";} ?>>47 - Lot-et-Garonne</option>
                    <option value="48" <?php if (isset($_POST['departement']) && $_POST['departement']== "48"){echo "selected";} ?>>48 - Loz&egrave;re</option>
                    <option value="49" <?php if (isset($_POST['departement']) && $_POST['departement']== "49"){echo "selected";} ?>>49 - Maine-et-Loire</option>
                    <option value="50" <?php if (isset($_POST['departement']) && $_POST['departement']== "50"){echo "selected";} ?>>50 - Manche</option>
                    <option value="51" <?php if (isset($_POST['departement']) && $_POST['departement']== "51"){echo "selected";} ?>>51 - Marne</option>
                    <option value="52" <?php if (isset($_POST['departement']) && $_POST['departement']== "52"){echo "selected";} ?>>52 - Haute-Marne</option>
                    <option value="53" <?php if (isset($_POST['departement']) && $_POST['departement']== "53"){echo "selected";} ?>>53 - Mayenne</option>
                    <option value="54" <?php if (isset($_POST['departement']) && $_POST['departement']== "54"){echo "selected";} ?>>54 - Meurthe-et-Moselle</option>
                    <option value="55" <?php if (isset($_POST['departement']) && $_POST['departement']== "55"){echo "selected";} ?>>55 - Meuse</option>
                    <option value="56" <?php if (isset($_POST['departement']) && $_POST['departement']== "56"){echo "selected";} ?>>56 - Morbihan</option>
                    <option value="57" <?php if (isset($_POST['departement']) && $_POST['departement']== "57"){echo "selected";} ?>>57 - Moselle</option>
                    <option value="58" <?php if (isset($_POST['departement']) && $_POST['departement']== "58"){echo "selected";} ?>>58 - Ni&egrave;vre</option>
                    <option value="59" <?php if (isset($_POST['departement']) && $_POST['departement']== "59"){echo "selected";} ?>>59 - Nord</option>
                    <option value="60" <?php if (isset($_POST['departement']) && $_POST['departement']== "60"){echo "selected";} ?>>60 - Oise</option>
                    <option value="61" <?php if (isset($_POST['departement']) && $_POST['departement']== "61"){echo "selected";} ?>>61 - Orne</option>
                    <option value="62" <?php if (isset($_POST['departement']) && $_POST['departement']== "62"){echo "selected";} ?>>62 - Pas-de-Calais</option>
                    <option value="63" <?php if (isset($_POST['departement']) && $_POST['departement']== "63"){echo "selected";} ?>>63 - Puy-de-D&ocirc;me</option>
                    <option value="64" <?php if (isset($_POST['departement']) && $_POST['departement']== "64"){echo "selected";} ?>>64 - Pyr&eacute;n&eacute;es-Atlantiques</option>
                    <option value="65" <?php if (isset($_POST['departement']) && $_POST['departement']== "65"){echo "selected";} ?>>65 - Haute-Pyr&eacute;n&eacute;es</option>
                    <option value="66" <?php if (isset($_POST['departement']) && $_POST['departement']== "66"){echo "selected";} ?>>66 - Pyr&eacute;n&eacute;es-Orientales</option>
                    <option value="67" <?php if (isset($_POST['departement']) && $_POST['departement']== "67"){echo "selected";} ?>>67 - Bas-Rhin</option>
                    <option value="68" <?php if (isset($_POST['departement']) && $_POST['departement']== "68"){echo "selected";} ?>>68 - Haut-Rhin</option>
                    <option value="69" <?php if (isset($_POST['departement']) && $_POST['departement']== "69"){echo "selected";} ?>>69 - Rh&ocirc;ne</option>
                    <option value="70" <?php if (isset($_POST['departement']) && $_POST['departement']== "70"){echo "selected";} ?>>70 - Haute-Sa&ocirc;ne</option>
                    <option value="71" <?php if (isset($_POST['departement']) && $_POST['departement']== "71"){echo "selected";} ?>>71 - Sa&ocirc;ne-et-Loire</option>
                    <option value="72" <?php if (isset($_POST['departement']) && $_POST['departement']== "72"){echo "selected";} ?>>72 - Sarthe</option>
                    <option value="73" <?php if (isset($_POST['departement']) && $_POST['departement']== "73"){echo "selected";} ?>>73 - Savoie</option>
                    <option value="74" <?php if (isset($_POST['departement']) && $_POST['departement']== "74"){echo "selected";} ?>>74 - Haute-Savoie</option>
                    <option value="75" <?php if (isset($_POST['departement']) && $_POST['departement']== "75"){echo "selected";} ?>>75 - Paris</option>
                    <option value="76" <?php if (isset($_POST['departement']) && $_POST['departement']== "76"){echo "selected";} ?>>76 - Seine-Maritime</option>
                    <option value="77" <?php if (isset($_POST['departement']) && $_POST['departement']== "77"){echo "selected";} ?>>77 - Seine-et-Marne</option>
                    <option value="78" <?php if (isset($_POST['departement']) && $_POST['departement']== "78"){echo "selected";} ?>>78 - Yvelines</option>
                    <option value="79" <?php if (isset($_POST['departement']) && $_POST['departement']== "79"){echo "selected";} ?>>79 - Deux-S&egrave;vres</option>
                    <option value="80" <?php if (isset($_POST['departement']) && $_POST['departement']== "80"){echo "selected";} ?>>80 - Somme</option>
                    <option value="81" <?php if (isset($_POST['departement']) && $_POST['departement']== "81"){echo "selected";} ?>>81 - Tarn</option>
                    <option value="82" <?php if (isset($_POST['departement']) && $_POST['departement']== "82"){echo "selected";} ?>>82 - Tarn-et-Garonne</option>
                    <option value="83" <?php if (isset($_POST['departement']) && $_POST['departement']== "83"){echo "selected";} ?>>83 - Var</option>
                    <option value="84" <?php if (isset($_POST['departement']) && $_POST['departement']== "84"){echo "selected";} ?>>84 - Vaucluse</option>
                    <option value="85" <?php if (isset($_POST['departement']) && $_POST['departement']== "85"){echo "selected";} ?>>85 - Vend&eacute;e</option>
                    <option value="86" <?php if (isset($_POST['departement']) && $_POST['departement']== "86"){echo "selected";} ?>>86 - Vienne</option>
                    <option value="87" <?php if (isset($_POST['departement']) && $_POST['departement']== "87"){echo "selected";} ?>>87 - Haute-Vienne</option>
                    <option value="88" <?php if (isset($_POST['departement']) && $_POST['departement']== "88"){echo "selected";} ?>>88 - Vosges</option>
                    <option value="89" <?php if (isset($_POST['departement']) && $_POST['departement']== "89"){echo "selected";} ?>>89 - Yonne</option>
                    <option value="90" <?php if (isset($_POST['departement']) && $_POST['departement']== "90"){echo "selected";} ?>>90 - Territoire de Belfort</option>
                    <option value="91" <?php if (isset($_POST['departement']) && $_POST['departement']== "91"){echo "selected";} ?>>91 - Essonne</option>
                    <option value="92" <?php if (isset($_POST['departement']) && $_POST['departement']== "92"){echo "selected";} ?>>92 - Hauts-de-Seine</option>
                    <option value="93" <?php if (isset($_POST['departement']) && $_POST['departement']== "93"){echo "selected";} ?>>93 - Seine-Saint-Denis</option>
                    <option value="94" <?php if (isset($_POST['departement']) && $_POST['departement']== "94"){echo "selected";} ?>>94 - Val-de-Marne</option>
                    <option value="95" <?php if (isset($_POST['departement']) && $_POST['departement']== "95"){echo "selected";} ?>>95 - Val-d'Oise</option>
                </select>
          </div>
deuxième partie:
<div class="form-group">
            <label>Nom de la ville</label>
            <div name="ville" id="ville" ></div>
            <select name="ville" id="ville" class="form-control">
			  <option value="0">S&eacute;lectionnez votre ville</option>
              <option value="Belley" class="01" <?php if (isset($_POST['ville']) && $_POST['ville']== "Belley"){echo "selected";} ?>>Belley</option>
              <option value="Bourg-en-Bresse" class="01" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bourg-en-Bresse"){echo "selected";} ?>>Bourg-en-Bresse</option>
              <option value="Nantua" class="01" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nantua"){echo "selected";} ?>>Nantua</option>
              <option value="Gex" class="01" <?php if (isset($_POST['ville']) && $_POST['ville']== "Gex"){echo "selected";} ?>>Gex</option>
              <option value="Chateau-Thierry" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateau-Thierry"){echo "selected";} ?>>Chateau-Thierry</option>
              <option value="Laon" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Laon"){echo "selected";} ?>>Laon</option>
              <option value="Saint-Quentin" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Quentin"){echo "selected";} ?>>Saint-Quentin</option>
              <option value="Soissons" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Soissons"){echo "selected";} ?>>Soissons</option>
              <option value="Vervins" class="02" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vervins"){echo "selected";} ?>>Vervins</option>
              <option value="Montlucon" class="03" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montlucon"){echo "selected";} ?>>Montlucon</option>
              <option value="Moulins" class="03" <?php if (isset($_POST['ville']) && $_POST['ville']== "Moulins"){echo "selected";} ?>>Moulins</option>
              <option value="Vichy" class="03" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vichy"){echo "selected";} ?>>Vichy</option>
              <option value="Barcelonnette" class="04" <?php if (isset($_POST['ville']) && $_POST['ville']== "Barcelonnette"){echo "selected";} ?>>Barcelonnette</option>
              <option value="Castellane" class="04" <?php if (isset($_POST['ville']) && $_POST['ville']== "Castellane"){echo "selected";} ?>>Castellane</option>
              <option value="Digne-les-Bains" class="04" <?php if (isset($_POST['ville']) && $_POST['ville']== "Digne-les-Bains"){echo "selected";} ?>>Digne-les-Bains</option>
              <option value="Forcalquier" class="04" <?php if (isset($_POST['ville']) && $_POST['ville']== "Forcalquier"){echo "selected";} ?>>Forcalquier</option>
              <option value="Briancon" class="05" <?php if (isset($_POST['ville']) && $_POST['ville']== "Briancon"){echo "selected";} ?>>Briancon</option>
              <option value="Gap" class="05" <?php if (isset($_POST['ville']) && $_POST['ville']== "Gap"){echo "selected";} ?>>Gap</option>
              <option value="Grasse" class="06" <?php if (isset($_POST['ville']) && $_POST['ville']== "Grasse"){echo "selected";} ?>>Grasse</option>
              <option value="Nice" class="06" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nice"){echo "selected";} ?>>Nice</option>
              <option value="Largentiere" class="07" <?php if (isset($_POST['ville']) && $_POST['ville']== "Largentiere"){echo "selected";} ?>>Largentiere</option>
              <option value="Privas" class="07" <?php if (isset($_POST['ville']) && $_POST['ville']== "Privas"){echo "selected";} ?>>Privas</option>
              <option value="Tournon-sur-Rhone" class="07" <?php if (isset($_POST['ville']) && $_POST['ville']== "Tournon-sur-Rhone"){echo "selected";} ?>>Tournon-sur-Rhone</option>
              <option value="Charleville-Mezieres" class="08" <?php if (isset($_POST['ville']) && $_POST['ville']== "Charleville-Mezieres"){echo "selected";} ?>>Charleville-Mezieres</option>
              <option value="Rethel" class="08" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rethel"){echo "selected";} ?>>Rethel</option>

              <option value="Sedan" class="08" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sedan"){echo "selected";} ?>>Sedan</option>
              <option value="Vouziers" class="08" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vouziers"){echo "selected";} ?>>Vouziers</option>
              <option value="Foix" class="09" <?php if (isset($_POST['ville']) && $_POST['ville']== "Foix"){echo "selected";} ?>>Foix</option>
              <option value="Pamiers" class="09" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pamiers"){echo "selected";} ?>>Pamiers</option>
              <option value="Saint-Girons" class="09" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Girons"){echo "selected";} ?>>Saint-Girons</option>
              <option value="Bar-sur-Aube" class="10" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bar-sur-Aube"){echo "selected";} ?>>Bar-sur-Aube</option>
              <option value="Nogent-sur-Seine" class="10" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nogent-sur-Seine"){echo "selected";} ?>>Nogent-sur-Seine</option>
              <option value="Troyes" class="10" <?php if (isset($_POST['ville']) && $_POST['ville']== "Troyes"){echo "selected";} ?>>Troyes</option>
              <option value="Carcassonne" class="11" <?php if (isset($_POST['ville']) && $_POST['ville']== "Carcassonne"){echo "selected";} ?>>Carcassonne</option>
              <option value="Limoux" class="11" <?php if (isset($_POST['ville']) && $_POST['ville']== "Limoux"){echo "selected";} ?>>Limoux</option>
              <option value="Narbonne" class="11" <?php if (isset($_POST['ville']) && $_POST['ville']== "Narbonne"){echo "selected";} ?>>Narbonne</option>
              <option value="Millau" class="12" <?php if (isset($_POST['ville']) && $_POST['ville']== "Millau"){echo "selected";} ?>>Millau</option>
              <option value="Rodez" class="12" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rodez"){echo "selected";} ?>>Rodez</option>
              <option value="Villefranche-de-Rouergue" class="12" <?php if (isset($_POST['ville']) && $_POST['ville']== "Villefranche-de-Rouergue"){echo "selected";} ?>>Villefranche-de-Rouergue</option>
              <option value="Aix-en-Provence" class="13" <?php if (isset($_POST['ville']) && $_POST['ville']== "Aix-en-Provence"){echo "selected";} ?>>Aix-en-Provence</option>
              <option value="Arles" class="13" <?php if (isset($_POST['ville']) && $_POST['ville']== "Arles"){echo "selected";} ?>>Arles</option>
              <option value="Istres" class="13" <?php if (isset($_POST['ville']) && $_POST['ville']== "Istres"){echo "selected";} ?>>Istres</option>
              <option value="Marseille" class="13" <?php if (isset($_POST['ville']) && $_POST['ville']== "Marseille"){echo "selected";} ?>>Marseille</option>
              <option value="Bayeux" class="14" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bayeux"){echo "selected";} ?>>Bayeux</option>
              <option value="Caen" class="14" <?php if (isset($_POST['ville']) && $_POST['ville']== "Caen"){echo "selected";} ?>>Caen</option>
              <option value="Lisieux" class="14" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lisieux"){echo "selected";} ?>>Lisieux</option>
              <option value="Vire" class="14" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vire"){echo "selected";} ?>>Vire</option>
              <option value="Aurillac" class="15" <?php if (isset($_POST['ville']) && $_POST['ville']== "Aurillac"){echo "selected";} ?>>Aurillac</option>
              <option value="Mauriac" class="15" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mauriac"){echo "selected";} ?>>Mauriac</option>
              <option value="Saint-Flour" class="15" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Flour"){echo "selected";} ?>>Saint-Flour</option>
              <option value="Angouleme" class="16" <?php if (isset($_POST['ville']) && $_POST['ville']== "Angouleme"){echo "selected";} ?>>Angouleme</option>
              <option value="Cognac" class="16" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cognac"){echo "selected";} ?>>Cognac</option>
              <option value="Confolens" class="16" <?php if (isset($_POST['ville']) && $_POST['ville']== "Confolens"){echo "selected";} ?>>Confolens</option>
              <option value="Jonzac" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "Jonzac"){echo "selected";} ?>>Jonzac</option>
              <option value="La Rochelle" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Rochelle"){echo "selected";} ?>>La Rochelle</option>
              <option value="Rochefort" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rochefort"){echo "selected";} ?>>Rochefort</option>
              <option value="Saint-Jean-d'Angely" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Jean-d'Angely"){echo "selected";} ?>>Saint-Jean-d'Angely</option>
              <option value="Saintes" class="17" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saintes"){echo "selected";} ?>>Saintes</option>
              <option value="Bourges" class="18" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bourges"){echo "selected";} ?>>Bourges</option>
              <option value="Saint-Amand-Montrond" class="18" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Amand-Montrond"){echo "selected";} ?>>Saint-Amand-Montrond</option>
              <option value="Vierzon" class="18" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vierzon"){echo "selected";} ?>>Vierzon</option>
              <option value="Brive-la-Gaillarde" class="19" <?php if (isset($_POST['ville']) && $_POST['ville']== "Brive-la-Gaillarde"){echo "selected";} ?>>Brive-la-Gaillarde</option>
              <option value="Tulle" class="19" <?php if (isset($_POST['ville']) && $_POST['ville']== "Tulle"){echo "selected";} ?>>Tulle</option>
              <option value="Ussel" class="19" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ussel"){echo "selected";} ?>>Ussel</option>
              <option value="Beaune" class="21" <?php if (isset($_POST['ville']) && $_POST['ville']== "Beaune"){echo "selected";} ?>>Beaune</option>
              <option value="Dijon" class="21" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dijon"){echo "selected";} ?>>Dijon</option>
              <option value="Montbard" class="21" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montbard"){echo "selected";} ?>>Montbard</option>
              <option value="Dinan" class="22" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dinan"){echo "selected";} ?>>Dinan</option>
              <option value="Guingamp" class="22" <?php if (isset($_POST['ville']) && $_POST['ville']== "Guingamp"){echo "selected";} ?>>Guingamp</option>
              <option value="Saint-Brieuc" class="22" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Brieuc"){echo "selected";} ?>>Saint-Brieuc</option>
              <option value="Lannion" class="22" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lannion"){echo "selected";} ?>>Lannion</option>
              <option value="Aubusson" class="23" <?php if (isset($_POST['ville']) && $_POST['ville']== "Aubusson"){echo "selected";} ?>>Aubusson</option>
              <option value="Gueret" class="23" <?php if (isset($_POST['ville']) && $_POST['ville']== "Gueret"){echo "selected";} ?>>Gueret</option>
              <option value="Bergerac" class="24" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bergerac"){echo "selected";} ?>>Bergerac</option>
              <option value="Nontron" class="24" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nontron"){echo "selected";} ?>>Nontron</option>
              <option value="Perigueux" class="24" <?php if (isset($_POST['ville']) && $_POST['ville']== "Perigueux"){echo "selected";} ?>>Perigueux</option>
              <option value="Sarlat-la-Caneda" class="24" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sarlat-la-Caneda"){echo "selected";} ?>>Sarlat-la-Caneda</option>
              <option value="Besancon" class="25" <?php if (isset($_POST['ville']) && $_POST['ville']== "Besancon"){echo "selected";} ?>>Besancon</option>
              <option value="Montbeliard" class="25" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montbeliard"){echo "selected";} ?>>Montbeliard</option>
              <option value="Pontarlier" class="25" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pontarlier"){echo "selected";} ?>>Pontarlier</option>
              <option value="Die" class="26" <?php if (isset($_POST['ville']) && $_POST['ville']== "Die"){echo "selected";} ?>>Die</option>
              <option value="Nyons" class="26" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nyons"){echo "selected";} ?>>Nyons</option>
              <option value="Valence" class="26" <?php if (isset($_POST['ville']) && $_POST['ville']== "Valence"){echo "selected";} ?>>Valence</option>
              <option value="Bernay" class="27" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bernay"){echo "selected";} ?>>Bernay</option>
              <option value="Evreux" class="27" <?php if (isset($_POST['ville']) && $_POST['ville']== "Evreux"){echo "selected";} ?>>Evreux</option>
              <option value="Les Andelys" class="27" <?php if (isset($_POST['ville']) && $_POST['ville']== "Les Andelys"){echo "selected";} ?>>Les Andelys</option>
              <option value="Chartres" class="28" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chartres"){echo "selected";} ?>>Chartres</option>
              <option value="Chateaudun" class="28" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateaudun"){echo "selected";} ?>>Chateaudun</option>
              <option value="Dreux" class="28" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dreux"){echo "selected";} ?>>Dreux</option>
              <option value="Nogent-le-Rotrou" class="28" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nogent-le-Rotrou"){echo "selected";} ?>>Nogent-le-Rotrou</option>
              <option value="Brest" class="29" <?php if (isset($_POST['ville']) && $_POST['ville']== "Brest"){echo "selected";} ?>>Brest</option>
              <option value="Chateaulin" class="29" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateaulin"){echo "selected";} ?>>Chateaulin</option>
              <option value="Morlaix" class="29" <?php if (isset($_POST['ville']) && $_POST['ville']== "Morlaix"){echo "selected";} ?>>Morlaix</option>
              <option value="Quimper" class="29" <?php if (isset($_POST['ville']) && $_POST['ville']== "Quimper"){echo "selected";} ?>>Quimper</option>
              <option value="Ales" class="30" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ales"){echo "selected";} ?>>Ales</option>
              <option value="Le Vigan" class="30" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Vigan"){echo "selected";} ?>>Le Vigan</option>
              <option value="Nimes" class="30" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nimes"){echo "selected";} ?>>Nimes</option>
              <option value="Muret" class="31" <?php if (isset($_POST['ville']) && $_POST['ville']== "Muret"){echo "selected";} ?>>Muret</option>
              <option value="Toulouse" class="31" <?php if (isset($_POST['ville']) && $_POST['ville']== "Toulouse"){echo "selected";} ?>>Toulouse</option>
              <option value="Saint-Gaudens" class="31" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Gaudens"){echo "selected";} ?>>Saint-Gaudens</option>
              <option value="Auch" class="32" <?php if (isset($_POST['ville']) && $_POST['ville']== "Auch"){echo "selected";} ?>>Auch</option>
              <option value="Condom" class="32" <?php if (isset($_POST['ville']) && $_POST['ville']== "Condom"){echo "selected";} ?>>Condom</option>
              <option value="Mirande" class="32" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mirande"){echo "selected";} ?>>Mirande</option>
              <option value="Arcachon" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Arcachon"){echo "selected";} ?>>Arcachon</option>
              <option value="Blaye" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Blaye"){echo "selected";} ?>>Blaye</option>
              <option value="Bordeaux" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bordeaux"){echo "selected";} ?>>Bordeaux</option>
              <option value="Langon" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Langon"){echo "selected";} ?>>Langon</option>
              <option value="Lesparre-Medoc" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lesparre-M&eacute;doc"){echo "selected";} ?>>Lesparre-Medoc</option>
              <option value="Libourne" class="33" <?php if (isset($_POST['ville']) && $_POST['ville']== "Libourne"){echo "selected";} ?>>Libourne</option>
              <option value="Beziers" class="34" <?php if (isset($_POST['ville']) && $_POST['ville']== "Beziers"){echo "selected";} ?>>Beziers</option>
              <option value="Montpellier" class="34" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montpellier"){echo "selected";} ?>>Montpellier</option>
              <option value="Lodeve" class="34" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lodeve"){echo "selected";} ?>>Lodeve</option>
              <option value="Fougeres" class="35" <?php if (isset($_POST['ville']) && $_POST['ville']== "Fougeres"){echo "selected";} ?>>Fougeres</option>
              <option value="Rennes" class="35" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rennes"){echo "selected";} ?>>Rennes</option>
              <option value="Redon" class="35" <?php if (isset($_POST['ville']) && $_POST['ville']== "Redon"){echo "selected";} ?>>Redon</option>
              <option value="Saint-Malo" class="35" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Malo"){echo "selected";} ?>>Saint-Malo</option>
              <option value="Chateauroux" class="36" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateauroux"){echo "selected";} ?>>Chateauroux</option>
              <option value="Le Blanc" class="36" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Blanc"){echo "selected";} ?>>Le Blanc</option>
              <option value="La Chatre" class="36" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Chatre"){echo "selected";} ?>>La Chatre</option>
              <option value="Issoudun" class="36" <?php if (isset($_POST['ville']) && $_POST['ville']== "Issoudun"){echo "selected";} ?>>Issoudun</option>
              <option value="Chinon" class="37" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chinon"){echo "selected";} ?>>Chinon</option>
              <option value="Loches" class="37" <?php if (isset($_POST['ville']) && $_POST['ville']== "Loches"){echo "selected";} ?>>Loches</option>
              <option value="Tours" class="37" <?php if (isset($_POST['ville']) && $_POST['ville']== "Tours"){echo "selected";} ?>>Tours</option>
              <option value="Grenoble" class="38" <?php if (isset($_POST['ville']) && $_POST['ville']== "Grenoble"){echo "selected";} ?>>Grenoble</option>
              <option value="La Tour du Pin" class="38" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Tour du Pin"){echo "selected";} ?>>La Tour du Pin</option>
              <option value="Vienne" class="38" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vienne"){echo "selected";} ?>>Vienne</option>
              <option value="Dole" class="39" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dole"){echo "selected";} ?>>Dole</option>
              <option value="Lons-le-Saunier" class="39" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lons-le-Saunier"){echo "selected";} ?>>Lons-le-Saunier</option>
              <option value="Saint-Claude" class="39" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Claude"){echo "selected";} ?>>Saint-Claude</option>
              <option value="Dax" class="40" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dax"){echo "selected";} ?>>Dax</option>
              <option value="Mont-de-Marsan" class="40" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mont-de-Marsan"){echo "selected";} ?>>Mont-de-Marsan</option>
              <option value="Blois" class="41" <?php if (isset($_POST['ville']) && $_POST['ville']== "Blois"){echo "selected";} ?>>Blois</option>
              <option value="Romorantin-Lanthenay" class="41" <?php if (isset($_POST['ville']) && $_POST['ville']== "Romorantin-Lanthenay"){echo "selected";} ?>>Romorantin-Lanthenay</option>
              <option value="Vendome" class="41" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vendome"){echo "selected";} ?>>Vendome</option>
              <option value="Montbrison" class="42" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montbrison"){echo "selected";} ?>>Montbrison</option>
              <option value="Roanne" class="42" <?php if (isset($_POST['ville']) && $_POST['ville']== "Roanne"){echo "selected";} ?>>Roanne</option>
              <option value="Saint-Etienne" class="42" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Etienne"){echo "selected";} ?>>Saint-Etienne</option>
              <option value="Brioude" class="43" <?php if (isset($_POST['ville']) && $_POST['ville']== "Brioude"){echo "selected";} ?>>Brioude</option>
              <option value="Le Puy-en-Velay" class="43" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Puy-en-Velay"){echo "selected";} ?>>Le Puy-en-Velay</option>
              <option value="Yssingeaux" class="43" <?php if (isset($_POST['ville']) && $_POST['ville']== "Yssingeaux"){echo "selected";} ?>>Yssingeaux</option>
              <option value="Ancenis" class="44" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ancenis"){echo "selected";} ?>>Ancenis</option>
              <option value="Chateaubriant" class="44" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateaubriant"){echo "selected";} ?>>Chateaubriant</option>
              <option value="Nantes" class="44" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nantes"){echo "selected";} ?>>Nantes</option>
              <option value="Saint-Nazaire" class="44" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Nazaire"){echo "selected";} ?>>Saint-Nazaire</option>
              <option value="Montargis" class="45" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montargis"){echo "selected";} ?>>Montargis</option>
              <option value="Orleans" class="45" <?php if (isset($_POST['ville']) && $_POST['ville']== "Orleans"){echo "selected";} ?>>Orleans</option>
              <option value="Pithiviers" class="45" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pithiviers"){echo "selected";} ?>>Pithiviers</option>
              <option value="Cahors" class="46" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cahors"){echo "selected";} ?>>Cahors</option>
              <option value="Figeac" class="46" <?php if (isset($_POST['ville']) && $_POST['ville']== "Figeac"){echo "selected";} ?>>Figeac</option>
              <option value="Gourdon" class="46" <?php if (isset($_POST['ville']) && $_POST['ville']== "Gourdon"){echo "selected";} ?>>Gourdon</option>
              <option value="Agen" class="47" <?php if (isset($_POST['ville']) && $_POST['ville']== "Agen"){echo "selected";} ?>>Agen</option>
              <option value="Marmande" class="47" <?php if (isset($_POST['ville']) && $_POST['ville']== "Marmande"){echo "selected";} ?>>Marmande</option>
              <option value="Nerac" class="47" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nerac"){echo "selected";} ?>>Nerac</option>
              <option value="Villeneuve-sur-Lot" class="47" <?php if (isset($_POST['ville']) && $_POST['ville']== "Villeneuve-sur-Lot"){echo "selected";} ?>>Villeneuve-sur-Lot</option>
              <option value="Florac" class="48" <?php if (isset($_POST['ville']) && $_POST['ville']== "Florac"){echo "selected";} ?>>Florac</option>
              <option value="Mende" class="48" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mende"){echo "selected";} ?>>Mende</option>
              <option value="Angers" class="49" <?php if (isset($_POST['ville']) && $_POST['ville']== "Angers"){echo "selected";} ?>>Angers</option>
              <option value="Cholet" class="49" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cholet"){echo "selected";} ?>>Cholet</option>
              <option value="Saumur" class="49" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saumur"){echo "selected";} ?>>Saumur</option>
              <option value="Segre" class="49" <?php if (isset($_POST['ville']) && $_POST['ville']== "Segre"){echo "selected";} ?>>Segre</option>
              <option value="Avranches" class="50" <?php if (isset($_POST['ville']) && $_POST['ville']== "Avranches"){echo "selected";} ?>>Avranches</option>
              <option value="Cherbourg-Octeville" class="50" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cherbourg-Octeville"){echo "selected";} ?>>Cherbourg-Octeville</option>
              <option value="Coutances" class="50" <?php if (isset($_POST['ville']) && $_POST['ville']== "Coutances"){echo "selected";} ?>>Coutances</option>
              <option value="Saint-Lo" class="50" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Lo"){echo "selected";} ?>>Saint-Lo</option>
              <option value="Chalons-en-Champagne" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ch&acirc;lons-en-Champagne"){echo "selected";} ?>>Chalons-en-Champagne</option>
              <option value="Epernay" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Epernay"){echo "selected";} ?>>Epernay</option>
              <option value="Reims" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Reims"){echo "selected";} ?>>Reims</option>
              <option value="Sainte-Menebould" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sainte-Menebould"){echo "selected";} ?>>Sainte-Menebould</option>
              <option value="Vitry-le-Francois" class="51" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vitry-le-Francois"){echo "selected";} ?>>Vitry-le-Francois</option>
              <option value="Chaumont" class="52" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chaumont"){echo "selected";} ?>>Chaumont</option>
              <option value="Langres" class="52" <?php if (isset($_POST['ville']) && $_POST['ville']== "Langres"){echo "selected";} ?>>Langres</option>
              <option value="Saint-Dizier" class="52" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Dizier"){echo "selected";} ?>>Saint-Dizier</option>
              <option value="Chateau-Gontier" class="53" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateau-Gontier"){echo "selected";} ?>>Chateau-Gontier</option>
              <option value="Laval" class="53" <?php if (isset($_POST['ville']) && $_POST['ville']== "Laval"){echo "selected";} ?>>Laval</option>
              <option value="Mayenne" class="53" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mayenne"){echo "selected";} ?>>Mayenne</option>
              <option value="Briey" class="54" <?php if (isset($_POST['ville']) && $_POST['ville']== "Briey"){echo "selected";} ?>>Briey</option>
              <option value="Luneville" class="54" <?php if (isset($_POST['ville']) && $_POST['ville']== "Luneville"){echo "selected";} ?>>Luneville</option>
              <option value="Nancy" class="54" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nancy"){echo "selected";} ?>>Nancy</option>
              <option value="Toul" class="54" <?php if (isset($_POST['ville']) && $_POST['ville']== "Toul"){echo "selected";} ?>>Toul</option>
              <option value="Bar-le-Duc" class="55" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bar-le-Duc"){echo "selected";} ?>>Bar-le-Duc</option>
              <option value="Commercy" class="55" <?php if (isset($_POST['ville']) && $_POST['ville']== "Commercy"){echo "selected";} ?>>Commercy</option>
              <option value="Verdun" class="55" <?php if (isset($_POST['ville']) && $_POST['ville']== "Verdun"){echo "selected";} ?>>Verdun</option>
              <option value="Lorient" class="56" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lorient"){echo "selected";} ?>>Lorient</option>
              <option value="Pontivy" class="56" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pontivy"){echo "selected";} ?>>Pontivy</option>
              <option value="Vannes" class="56" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vannes"){echo "selected";} ?>>Vannes</option>
              <option value="Boulay-Moselle" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Boulay-Moselle"){echo "selected";} ?>>Boulay-Moselle</option>
              <option value="Chateau-Salins" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateau-Salins"){echo "selected";} ?>>Chateau-Salins</option>
              <option value="Forbach" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Forbach"){echo "selected";} ?>>Forbach</option>
              <option value="Metz" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Metz"){echo "selected";} ?>>Metz</option>
              <option value="Sarrebourg" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sarrebourg"){echo "selected";} ?>>Sarrebourg</option>
              <option value="Sarreguemines" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sarreguemines"){echo "selected";} ?>>Sarreguemines</option>
              <option value="Thionville" class="57" <?php if (isset($_POST['ville']) && $_POST['ville']== "Thionville"){echo "selected";} ?>>Thionville</option>
              <option value="Chateau-Chinon" class="58 <?php if (isset($_POST['ville']) && $_POST['ville']== "Chateau-Chinon"){echo "selected";} ?>">Chateau-Chinon</option>
              <option value="Clamecy" class="58" <?php if (isset($_POST['ville']) && $_POST['ville']== "Clamecy"){echo "selected";} ?>>Clamecy</option>
              <option value="Cosne-Cours-sur-Loire" class="58" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cosne-Cours-sur-Loire"){echo "selected";} ?>>Cosne-Cours-sur-Loire</option>
Troisième et dernière partie:
<option value="Nevers" class="58" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nevers"){echo "selected";} ?>>Nevers</option>
              <option value="Avesnes-sur-Helpe" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Avesnes-sur-Helpe"){echo "selected";} ?>>Avesnes-sur-Helpe</option>
              <option value="Cambrai" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cambrai"){echo "selected";} ?>>Cambrai</option>
              <option value="Dunkerque" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dunkerque"){echo "selected";} ?>>Dunkerque</option>
              <option value="Douai" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Douai"){echo "selected";} ?>>Douai</option>
              <option value="Lille" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lille"){echo "selected";} ?>>Lille</option>
              <option value="Valenciennes" class="59" <?php if (isset($_POST['ville']) && $_POST['ville']== "Valenciennes"){echo "selected";} ?>>Valenciennes</option>
              <option value="Beauvais" class="60" <?php if (isset($_POST['ville']) && $_POST['ville']== "Beauvais"){echo "selected";} ?>>Beauvais</option>
              <option value="Clermont" class="60" <?php if (isset($_POST['ville']) && $_POST['ville']== "Clermont"){echo "selected";} ?>>Clermont</option>
              <option value="Compiegne" class="60" <?php if (isset($_POST['ville']) && $_POST['ville']== "Compiegne"){echo "selected";} ?>>Compi&egrave;gne</option>
              <option value="Senlis" class="60" <?php if (isset($_POST['ville']) && $_POST['ville']== "Senlis"){echo "selected";} ?>>Senlis</option>
              <option value="Alencon" class="61" <?php if (isset($_POST['ville']) && $_POST['ville']== "Alencon"){echo "selected";} ?>>Alencon</option>
              <option value="Argentan" class="61" <?php if (isset($_POST['ville']) && $_POST['ville']== "Argentan"){echo "selected";} ?>>Argentan</option>
              <option value="Mortagne-au-Perche" class="61" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mortagne-au-Perche"){echo "selected";} ?>>Mortagne-au-Perche</option>
              <option value="Arras" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Arras"){echo "selected";} ?>>Arras</option>
              <option value="Bethune" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bethune"){echo "selected";} ?>>Bethune</option>
              <option value="Boulogne-sur-Mer" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Boulogne-sur-Mer"){echo "selected";} ?>>Boulogne-sur-Mer</option>
              <option value="Calais" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Calais"){echo "selected";} ?>>Calais</option>
              <option value="Lens" class="62 <?php if (isset($_POST['ville']) && $_POST['ville']== "Lens"){echo "selected";} ?>">Lens</option>
              <option value="Montreuil-sur-Mer" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montreuil-sur-Mer"){echo "selected";} ?>>Montreuil-sur-Mer</option>
              <option value="Saint-Omer" class="62" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Omer"){echo "selected";} ?>>Saint-Omer</option>
              <option value="Ambert" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ambert"){echo "selected";} ?>>Ambert</option>
              <option value="Clermont-Ferrand" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Clermont-Ferrand"){echo "selected";} ?>>Clermont-Ferrand</option>
              <option value="Issoire" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Issoire"){echo "selected";} ?>>Issoire</option>
              <option value="Riom" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Riom"){echo "selected";} ?>>Riom</option>
              <option value="Thiers" class="63" <?php if (isset($_POST['ville']) && $_POST['ville']== "Thiers"){echo "selected";} ?>>Thiers</option>
              <option value="Bayonne" class="64" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bayonne"){echo "selected";} ?>>Bayonne</option>
              <option value="Oloron-Sainte-Marie" class="64" <?php if (isset($_POST['ville']) && $_POST['ville']== "Oloron-Sainte-Marie"){echo "selected";} ?>>Oloron-Sainte-Marie</option>
              <option value="Pau" class="64" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pau"){echo "selected";} ?>>Pau</option>
              <option value="Argeles-Gazost" class="65" <?php if (isset($_POST['ville']) && $_POST['ville']== "Argeles-Gazost"){echo "selected";} ?>>Argeles-Gazost</option>
              <option value="Bagneres-de-Bigorre" class="65" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bagneres-de-Bigorre"){echo "selected";} ?>>Bagneres-de-Bigorre</option>
              <option value="Tarbes" class="65" <?php if (isset($_POST['ville']) && $_POST['ville']== "Tarbes"){echo "selected";} ?>>Tarbes</option>
              <option value="Ceret" class="66" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ceret"){echo "selected";} ?>>Ceret</option>
              <option value="Perpignan" class="66" <?php if (isset($_POST['ville']) && $_POST['ville']== "Perpignan"){echo "selected";} ?>>Perpignan</option>
              <option value="Prades" class="66" <?php if (isset($_POST['ville']) && $_POST['ville']== "Prades"){echo "selected";} ?>>Prades</option>
              <option value="Haguenau" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Haguenau"){echo "selected";} ?>>Haguenau</option>
              <option value="Molsheim" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Molsheim"){echo "selected";} ?>>Molsheim</option>
              <option value="Saverne" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saverne"){echo "selected";} ?>>Saverne</option>
              <option value="Selestat" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Selestat"){echo "selected";} ?>>Selestat</option>
              <option value="Strasbourg" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Strasbourg"){echo "selected";} ?>>Strasbourg</option>
              <option value="Wissembourg" class="67" <?php if (isset($_POST['ville']) && $_POST['ville']== "Wissembourg"){echo "selected";} ?>>Wissembourg</option>
              <option value="Altkirch" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Altkirch"){echo "selected";} ?>>Altkirch</option>
              <option value="Colmar" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Colmar"){echo "selected";} ?>>Colmar</option>
              <option value="Guebwiller" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Guebwiller"){echo "selected";} ?>>Guebwiller</option>
              <option value="Mulhouse" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mulhouse"){echo "selected";} ?>>Mulhouse</option>
              <option value="Ribeauville" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Ribeauville"){echo "selected";} ?>>Ribeauville</option>
              <option value="Thann" class="68" <?php if (isset($_POST['ville']) && $_POST['ville']== "Thann"){echo "selected";} ?>>Thann</option>
              <option value="Lyon" class="69" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lyon"){echo "selected";} ?>>Lyon</option>
              <option value="Villefranche-sur-Saone" class="69" <?php if (isset($_POST['ville']) && $_POST['ville']== "Villefranche-sur-Sa&ocirc;ne"){echo "selected";} ?>>Villefranche-sur-Saone</option>
              <option value="Lure" class="70" <?php if (isset($_POST['ville']) && $_POST['ville']== "Lure"){echo "selected";} ?>>Lure</option>
              <option value="Vesoul" class="70" <?php if (isset($_POST['ville']) && $_POST['ville']== "Vesoul"){echo "selected";} ?>>Vesoul</option>
              <option value="Autun" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Autun"){echo "selected";} ?>>Autun</option>
              <option value="Chalon-sur-Saone" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chalon-sur-Saone"){echo "selected";} ?>>Chalon-sur-Saone</option>
              <option value="Charolles" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Charolles"){echo "selected";} ?>>Charolles</option>
              <option value="Louhans" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Louhans"){echo "selected";} ?>>Louhans</option>
              <option value="M&acirc;con" class="71" <?php if (isset($_POST['ville']) && $_POST['ville']== "Macon"){echo "selected";} ?>>Macon</option>
              <option value="La Fleche" class="72" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Fleche"){echo "selected";} ?>>La Fleche</option>
              <option value="Le Mans" class="72" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Mans"){echo "selected";} ?>>Le Mans</option>
              <option value="Mamers" class="72" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mamers"){echo "selected";} ?>>Mamers</option>
              <option value="Albertville" class="73" <?php if (isset($_POST['ville']) && $_POST['ville']== "Albertville"){echo "selected";} ?>>Albertville</option>
              <option value="Chambery" class="73" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chambery"){echo "selected";} ?>>Chambery</option>
              <option value="Saint-Jean-de-Maurienne" class="73" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Jean-de-Maurienne"){echo "selected";} ?>>Saint-Jean-de-Maurienne</option>
              <option value="Annecy" class="74" <?php if (isset($_POST['ville']) && $_POST['ville']== "Annecy"){echo "selected";} ?>>Annecy</option>
              <option value="Bonneville" class="74" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bonneville"){echo "selected";} ?>>Bonneville</option>
              <option value="Saint-Julien-en-Genevois" class="74" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Julien-en-Genevois"){echo "selected";} ?>>Saint-Julien-en-Genevois</option>
              <option value="Thonon-les-Bains" class="74" <?php if (isset($_POST['ville']) && $_POST['ville']== "Thonon-les-Bains"){echo "selected";} ?>>Thonon-les-Bains</option>
              <option value="Paris" class="75" <?php if (isset($_POST['ville']) && $_POST['ville']== "Paris"){echo "selected";} ?>>Paris</option>
              <option value="Dieppe" class="76" <?php if (isset($_POST['ville']) && $_POST['ville']== "Dieppe"){echo "selected";} ?>>Dieppe</option>
              <option value="Le Havre" class="76" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Havre"){echo "selected";} ?>>Le Havre</option>
              <option value="Rouen" class="76" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rouen"){echo "selected";} ?>>Rouen</option>
              <option value="Fontainebleau" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Fontainebleau"){echo "selected";} ?>>Fontainebleau</option>
              <option value="Melun" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Melun"){echo "selected";} ?>>Melun</option>
              <option value="Meaux" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Meaux"){echo "selected";} ?>>Meaux</option>
              <option value="Torcy" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Torcy"){echo "selected";} ?>>Torcy</option>
              <option value="Provins" class="77" <?php if (isset($_POST['ville']) && $_POST['ville']== "Provins"){echo "selected";} ?>>Provins</option>
              <option value="Mantes-la-Jolie" class="78" <?php if (isset($_POST['ville']) && $_POST['ville']== "Mantes-la-Jolie"){echo "selected";} ?>>Mantes-la-Jolie</option>
              <option value="Rambouillet" class="78" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rambouillet"){echo "selected";} ?>>Rambouillet</option>
              <option value="Saint-Germain-en-Laye" class="78" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Germain-en-Laye"){echo "selected";} ?>>Saint-Germain-en-Laye</option>
              <option value="Versailles" class="78" <?php if (isset($_POST['ville']) && $_POST['ville']== "Versailles"){echo "selected";} ?>>Versailles</option>
              <option value="Bressuire" class="79" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bressuire"){echo "selected";} ?>>Bressuire</option>
              <option value="Niort" class="79" <?php if (isset($_POST['ville']) && $_POST['ville']== "Niort"){echo "selected";} ?>>Niort</option>
              <option value="Parthenay" class="79" <?php if (isset($_POST['ville']) && $_POST['ville']== "Parthenay"){echo "selected";} ?>>Parthenay</option>
              <option value="Abbeville" class="80" <?php if (isset($_POST['ville']) && $_POST['ville']== "Abbeville"){echo "selected";} ?>>Abbeville</option>
              <option value="Amiens" class="80" <?php if (isset($_POST['ville']) && $_POST['ville']== "Amiens"){echo "selected";} ?>>Amiens</option>
              <option value="Montdidier" class="80" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montdidier"){echo "selected";} ?>>Montdidier</option>
              <option value="Peronne" class="80" <?php if (isset($_POST['ville']) && $_POST['ville']== "Peronne"){echo "selected";} ?>>Peronne</option>
              <option value="Albi" class="81" <?php if (isset($_POST['ville']) && $_POST['ville']== "Albi"){echo "selected";} ?>>Albi</option>
              <option value="Castres" class="81" <?php if (isset($_POST['ville']) && $_POST['ville']== "Castres"){echo "selected";} ?>>Castres</option>
              <option value="Castelsarrasin" class="82" <?php if (isset($_POST['ville']) && $_POST['ville']== "Castelsarrasin"){echo "selected";} ?>>Castelsarrasin</option>
              <option value="Montauban" class="82" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montauban"){echo "selected";} ?>>Montauban</option>
              <option value="Brignoles" class="83" <?php if (isset($_POST['ville']) && $_POST['ville']== "Brignoles"){echo "selected";} ?>>Brignoles</option>
              <option value="Draguignan" class="83" <?php if (isset($_POST['ville']) && $_POST['ville']== "Draguignan"){echo "selected";} ?>>Draguignan</option>
              <option value="Toulon" class="83" <?php if (isset($_POST['ville']) && $_POST['ville']== "Toulon"){echo "selected";} ?>>Toulon</option>
              <option value="Avignon" class="84" <?php if (isset($_POST['ville']) && $_POST['ville']== "Avignon"){echo "selected";} ?>>Avignon</option>
              <option value="Apt" class="84" <?php if (isset($_POST['ville']) && $_POST['ville']== "Apt"){echo "selected";} ?>>Apt</option>
              <option value="Carpentras" class="84" <?php if (isset($_POST['ville']) && $_POST['ville']== "Carpentras"){echo "selected";} ?>>Carpentras</option>
              <option value="Fontenay-le-Comte" class="85" <?php if (isset($_POST['ville']) && $_POST['ville']== "Fontenay-le-Comte"){echo "selected";} ?>>Fontenay-le-Comte</option>
              <option value="La Roche-sur-Yon" class="85" <?php if (isset($_POST['ville']) && $_POST['ville']== "La Roche-sur-Yon"){echo "selected";} ?>>La Roche-sur-Yon</option>
              <option value="Les-Sables-d'Olonne" class="85" <?php if (isset($_POST['ville']) && $_POST['ville']== "Les-Sables-d'Olonne"){echo "selected";} ?>>Les-Sables-d'Olonne</option>
              <option value="Chatellerault" class="86" <?php if (isset($_POST['ville']) && $_POST['ville']== "Chatellerault"){echo "selected";} ?>>Chatellerault</option>
              <option value="Montmorillon" class="86" <?php if (isset($_POST['ville']) && $_POST['ville']== "Montmorillon"){echo "selected";} ?>>Montmorillon</option>
              <option value="Poitiers" class="86" <?php if (isset($_POST['ville']) && $_POST['ville']== "Poitiers"){echo "selected";} ?>>Poitiers</option>
              <option value="Bellac" class="87" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bellac"){echo "selected";} ?>>Bellac</option>
              <option value="Limoges" class="87" <?php if (isset($_POST['ville']) && $_POST['ville']== "Limoges"){echo "selected";} ?>>Limoges</option>
              <option value="Rochechouart" class="87" <?php if (isset($_POST['ville']) && $_POST['ville']== "Rochechouart"){echo "selected";} ?>>Rochechouart</option>
              <option value="Epinal" class="88" <?php if (isset($_POST['ville']) && $_POST['ville']== "Epinal"){echo "selected";} ?>>Epinal</option>
              <option value="Neufchateau" class="88" <?php if (isset($_POST['ville']) && $_POST['ville']== "Neufchateau"){echo "selected";} ?>>Neufchateau</option>
              <option value="Saint-Die-des-Vosges" class="88" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Di&eacute;-des-Vosges"){echo "selected";} ?>>Saint-Die-des-Vosges</option>
              <option value="Auxerre" class="89" <?php if (isset($_POST['ville']) && $_POST['ville']== "Auxerre"){echo "selected";} ?>>Auxerre</option>
              <option value="Avallon" class="89" <?php if (isset($_POST['ville']) && $_POST['ville']== "Avallon"){echo "selected";} ?>>Avallon</option>
              <option value="Sens" class="89" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sens"){echo "selected";} ?>>Sens</option>
              <option value="Belfort" class="90" <?php if (isset($_POST['ville']) && $_POST['ville']== "Belfort"){echo "selected";} ?>>Belfort</option>
              <option value="Evry" class="91" <?php if (isset($_POST['ville']) && $_POST['ville']== "Evry"){echo "selected";} ?>>Evry</option>
              <option value="Palaiseau" class="91" <?php if (isset($_POST['ville']) && $_POST['ville']== "Palaiseau"){echo "selected";} ?>>Palaiseau</option>
              <option value="Etampes" class="91" <?php if (isset($_POST['ville']) && $_POST['ville']== "Etampes"){echo "selected";} ?>>Etampes</option>
              <option value="Antony" class="92" <?php if (isset($_POST['ville']) && $_POST['ville']== "Antony"){echo "selected";} ?>>Antony</option>
              <option value="Boulogne-Billancourt" class="92" <?php if (isset($_POST['ville']) && $_POST['ville']== "Boulogne-Billancourt"){echo "selected";} ?>>Boulogne-Billancourt</option>
              <option value="Nanterre" class="92" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nanterre"){echo "selected";} ?>>Nanterre</option>
              <option value="Bobigny" class="93" <?php if (isset($_POST['ville']) && $_POST['ville']== "Bobigny"){echo "selected";} ?>>Bobigny</option>
              <option value="Le Raincy" class="93" <?php if (isset($_POST['ville']) && $_POST['ville']== "Le Raincy"){echo "selected";} ?>>Le Raincy</option>
              <option value="Saint-Denis" class="93" <?php if (isset($_POST['ville']) && $_POST['ville']== "Saint-Denis"){echo "selected";} ?>>Saint-Denis</option>
              <option value="Creteil" class="94" <?php if (isset($_POST['ville']) && $_POST['ville']== "Creteil"){echo "selected";} ?>>Creteil</option>
              <option value="L'Hay-les-Roses" class="94" <?php if (isset($_POST['ville']) && $_POST['ville']== "L'Hay;-les-Roses"){echo "selected";} ?>>L'Hay-les-Roses</option>
              <option value="Nogent-sur-Marne" class="94" <?php if (isset($_POST['ville']) && $_POST['ville']== "Nogent-sur-Marne"){echo "selected";} ?>>Nogent-sur-Marne</option>
              <option value="Argenteuil" class="95" <?php if (isset($_POST['ville']) && $_POST['ville']== "Argenteuil"){echo "selected";} ?>>Argenteuil</option>
              <option value="Cergy" class="95" <?php if (isset($_POST['ville']) && $_POST['ville']== "Cergy"){echo "selected";} ?>>Cergy</option>
              <option value="Pontoise" class="95" <?php if (isset($_POST['ville']) && $_POST['ville']== "Pontoise"){echo "selected";} ?>>Pontoise</option>
              <option value="Sarcelles" class="95" <?php if (isset($_POST['ville']) && $_POST['ville']== "Sarcelles"){echo "selected";} ?>>Sarcelles</option>
		    </select>
            
          </div>

          </div>
         <div class="col-lg-12">
          <button type="submit" name="contact" class="btn btn-default" style="margin-bottom:10px;width:100%;background:#E6001D;color:white;font-weight:bold;text-transform: uppercase;">Envoyez</button>
          </div>
        </form>
      </div>
    </div>
  </section>
</div>
</body>
</html>
Modérateur
Bonjour,

Remplace en haut <html> et <body> par :

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0,user-scalable=yes">
</head>
<body>
<?php
if (isset($_POST['departement'])) print "Département : ".$_POST['departement']."<br>";
else print "Département indéfini<br>";
if (isset($_POST['ville'])) print "Ville : ".$_POST['ville']."<br>";
else print "Ville indéfinie<br>";
?>


Et dis nous ce qu'il y a en haut de page.

Amicalement,
Modérateur
Bonjour,

Que l'on soit bien d'accord, pour l'instant, on est en train de faire le diagnostic. On n'est pas en train de corriger le problème.

Tu as mis exactement ce que je t'ai indiqué ?

Si c'est le cas, tu dois avoir tout en haut de page quelque chose du genre :

"Département : ..."

ou bien

"Département indéfini"

Si tu n'as ni l'un ni l'autre, c'est que tu n'as pas fait ce que j'ai demandé. Ou alors, c'est que ton serveur ne sait pas faire du php.

Amicalement,
Modifié par parsimonhi (18 Jan 2016 - 20:08)
Modérateur
Bonjour,

Et tu n'a rien d'autre avant <html> dans de code le form.php ?

Amicalement,
Modifié par parsimonhi (19 Jan 2016 - 10:24)
Modérateur
Bonjour,

Bon, ok, ça me semble impossible. Va falloir employer les grands moyens.

Tu va remplacer la totalité de form.php (je dis bien la totalité) par le code ci-dessous :

<!doctype html>
<html>
<body>
<?php
if (isset($_POST['departement'])) print "Département : ".$_POST['departement']."<br>";
else print "Département indéfini<br>";
if (isset($_POST['ville'])) print "Ville : ".$_POST['ville']."<br>";
else print "Ville indéfinie<br>";
?></body>
</html>


Ensuite, tu me postes ici même le code qui se trouve dans le form.php ainsi modifié, et tu me dis ce que tu vois (et tu me dis aussi quelle département et quelle ville tu as sélectionné dans page.php).

Amicalement,
Pages :