IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

HTML Discussion :

rafraichissement formulaire obligatoire


Sujet :

HTML

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2009
    Messages : 105
    Points : 56
    Points
    56
    Par défaut rafraichissement formulaire obligatoire
    Bjr
    Je ne sais pas si je post au bon endroit, mais j'ai un petit soucis.
    je remplis un formulaire qui alimente une bdd, celle ci est bien incrémentée.
    mais lorsque je valide le formulaire, les variables n'apparaissent pas immédiatement dans le formulaire, il faut que je rafraichisse la page.
    Il y a surement un moyen mais je ne trouve rien sur le sujet.
    Merci de votre aide.

  2. #2
    Expert confirmé
    Avatar de RomainVALERI
    Homme Profil pro
    POOête
    Inscrit en
    Avril 2008
    Messages
    2 652
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations professionnelles :
    Activité : POOête

    Informations forums :
    Inscription : Avril 2008
    Messages : 2 652
    Points : 4 164
    Points
    4 164
    Par défaut
    Citation Envoyé par kogoi Voir le message
    lorsque je valide le formulaire, les variables n'apparaissent pas immédiatement dans le formulaire
    ... heu... comment quoi ?

  3. #3
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Points : 91 220
    Points
    91 220
    Billets dans le blog
    20
    Par défaut
    Il existe une fonction bien adaptée à ton problème et au code que tu nous montres :

  4. #4
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2009
    Messages : 105
    Points : 56
    Points
    56
    Par défaut formulaire préremplis
    Vous avez tous les 2 beaucoup d'humour
    J'ai essayé abracadabra() sans succès
    Je ré-explique.
    je récupère un formulaire d'un client pré-rempli par la bdd
    Je complète ce formulaire par des données supplémentaire
    lorsque je valide mon formulaire, les données supplémentaires ne sont pas préremplis.
    il faut, soit que je rafraichisse ma page, soit que je valide 2 fois mon formulaire.
    C'est peut être idiot, mais je ne sais pas ce qu'il faut faire
    merci

  5. #5
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Points : 91 220
    Points
    91 220
    Billets dans le blog
    20
    Par défaut
    Content que tu ais compris notre humour !

    Mais ce qu'il fallait lire entre les lignes, c'est qu'il faut nous montrer ton code pour que l'on puisse regarder ce qui pose problème

    Ceci dit, je soupçonne fortement que ton problème se situe plus au niveau de PHP (ou autre langage serveur) que du (X)HTML dont il est question ici.

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2009
    Messages : 105
    Points : 56
    Points
    56
    Par défaut formulaire préremplis
    oups!
    Je n'avais pas compris pour le code (manque d'entrainement)
    C'est surement un peu brouillon, mais je débute
    Je suppose que vous n'avez pas besoin de tout, mais je préfère tout mettre.
    voici donc mon script complet.
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    1033
    1034
    1035
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    1046
    1047
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
    1058
    1059
    1060
    1061
    1062
    1063
    1064
    1065
    1066
    1067
    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    1116
    1117
    1118
    1119
    1120
    1121
    1122
    1123
    1124
    1125
    1126
    1127
    1128
    1129
    <?php
    	session_start();
    	//Initialisation erreur
     
     
     
    if ($_SESSION['admin'] !=='XXXX' or $_SESSION['motpasse'] !=='XXXX')
    		{header("location: index.php");}
     
     
    $link = mysql_connect("XXXXX", "XXXXX", "XXXXX");
    mysql_select_db ("XXXXX");
     
    $sql="SELECT * FROM client  WHERE id = '".$_REQUEST['id']."'";
    $resultat=mysql_query($sql) or die("Erreur SQL : $sql<br/>".mysql_error());
    $client = mysql_fetch_array ($resultat)	;
    $action=$_REQUEST['action'];
     
     
    $id=$_REQUEST['id'];
    $connu=$_REQUEST['connu'];
    $nom=$_REQUEST['nom'];
    $prenom=$_REQUEST['prenom'];
    $rue=$_REQUEST['rue'];
    $ville=$_REQUEST['ville'];
    $dep=$_REQUEST['dep'];
    $fixe=$_REQUEST['fixe'];
    $mobile=$_REQUEST['mobile'];
    $mail=$_REQUEST['mail'];
    $dossier=$_REQUEST['dossier'];
    $saisie=$_REQUEST['saisie'];
    $ctx=$_REQUEST['ctx'];
    $atd=$_REQUEST['atd'];
    $rachcred=$_REQUEST['rachcred']; 
    if ($client['rachcreddate']=="10")
    {$rachcreddate=10;}
    else
    {$rachcreddate=$_REQUEST['rachcreddate'];}
     
    $SitFam=$_REQUEST['SitFam'];
    $SitLog=$_REQUEST['SitLog'];
    $credimmo=$_REQUEST['credimmo'];
    $immoret=$_REQUEST['immoret'];
    $valbienimmo=$_REQUEST['valbienimmo'];
     $fcc=$_REQUEST['fcc'];
      $ficp=$_REQUEST['ficp'];
     $comsur=$_REQUEST['comsur'];
    $nbcred=$_REQUEST['nbcred'];
    $rejet=$_REQUEST['rejet'];
    $loyerret=$_REQUEST['loyerret'];
    $loyer=$_REQUEST['loyer'];
     $charges=$_REQUEST['charges'];
    $pensdue=$_REQUEST['pensdue'];
     $AllocFam=$_REQUEST['AllocFam'];
    $NbEnfant=$_REQUEST['NbEnfant']; 
     
    if ($client['AgeEnfant0']=="18")
    {$AgeEnfant0=18;}
    else
    {$AgeEnfant0=$_REQUEST['AgeEnfant0'];}
     
    if ($client['AgeEnfant1']=="18")
    {$AgeEnfant1=18;}
    else
    {$AgeEnfant1=$_REQUEST['AgeEnfant1'];}
     
    if ($client['AgeEnfant2']=="18")
    {$AgeEnfant2=18;}
    else
    {$AgeEnfant1=$_REQUEST['AgeEnfant2'];}
     
    if ($client['AgeEnfant3']=="18")
    {$AgeEnfant3=18;}
    else
    {$AgeEnfant1=$_REQUEST['AgeEnfant3'];}
     
     
    if ($client['AgeEnfant4']=="18")
    {$AgeEnfant4=18;}
    else
    {$AgeEnfant4=$_REQUEST['AgeEnfant4'];}
     
    if ($client['AgeEnfant5']=="18")
    {$AgeEnfant5=18;}
    else
    {$AgeEnfant5=$_REQUEST['AgeEnfant5'];}
     
    $PensRecue=$_REQUEST['PensRecue'];
    $menscons=$_REQUEST['menscons'];
    $RevFonc=$_REQUEST['RevFonc'];
    $AllocLog=$_REQUEST['AllocLog'];
    $credcons=$_REQUEST['credcons'];
    $decouv=$_REQUEST['decouv'];
    $detfam=$_REQUEST['detfam'];
    $tresorerie=$_REQUEST['tresorerie'];
    $Emploi=$_REQUEST['Emploi'];
    $Contrat=$_REQUEST['Contrat'];
    $Anciennete=$_REQUEST['Anciennete'];
    $Age=$_REQUEST['Age'];
    $RevN3=$_REQUEST['RevN3'];
    $RevN2=$_REQUEST['RevN2'];
    $RevN1=$_REQUEST['RevN1'];
    $TypeInv=$_REQUEST['TypeInv'];
    $RevInvalidite=$_REQUEST['RevInvalidite'];
    $AgeConjoint=$_REQUEST['AgeConjoint'];
    $EmploiConjoint=$_REQUEST['EmploiConjoint'];
    $ContratConjoint=$_REQUEST['ContratConjoint'];
    $AncienneteConjoint=$_REQUEST['AncienneteConjoint'];
    $RevConjointN2=$_REQUEST['RevConjointN2'];
    $RevConjointN3=$_REQUEST['RevConjointN3'];
    $RevConjointN1=$_REQUEST['RevConjointN1'];
    $TypeInvConjoint=$_REQUEST['TypeInvConjoint'];
    $RevInvaliditeConjoint=$_REQUEST['RevInvaliditeConjoint'];
    $ficpimmo=$_REQUEST['ficpimmo'];
    $imporet=$_REQUEST['imporet'];
    $mensimmo=$_REQUEST['mensimmo'];
    $client2 = trim($client['Emploi']);
    $ContratConjoint2 = trim($client['ContratConjoint']);
     
     
    if ($_REQUEST['action']=="maj")
    {
    $sql="UPDATE client SET 
    admin='ezacal',
    connu='$connu',
    nom='$nom',
    prenom='$prenom',
    rue='$rue',
    ville='$ville',
    dep='$dep',
    fixe='$fixe',
    mobile='$mobile',
    mail='$mail',
    saisie='$saisie',
    ctx='$ctx',
    atd='$atd',
    rachcred='$rachcred',
    rachcreddate='$rachcreddate',
    SitFam='$SitFam',
    SitLog='$SitLog',
    credimmo='$credimmo',
    immoret='$immoret',
    valbienimmo='$valbienimmo',
    fcc='$fcc',
    ficp='$ficp',
    comsur='$comsur',
    nbcred='$nbcred',
    rejet='$rejet',
    loyerret='$loyerret',
    loyer='$loyer',
    charges='$charges',
    pensdue='$pensdue',
    AllocFam='$AllocFam',
    NbEnfant='$NbEnfant',
    AgeEnfant0='$AgeEnfant0',
    AgeEnfant1='$AgeEnfant1',
    AgeEnfant2='$AgeEnfant2',
    AgeEnfant3='$AgeEnfant3',
    AgeEnfant4='$AgeEnfant4',
    AgeEnfant5='$AgeEnfant5',
    PensRecue='$PensRecue',
    menscons='$menscons',
    RevFonc='$RevFonc',
    AllocLog='$AllocLog',
    credcons='$credcons',
    decouv='$decouv',
    detfam='$detfam',
    tresorerie='$tresorerie',
    Emploi='$Emploi',
    Contrat='$Contrat',
    ContratConjoint='$ContratConjoint',
    Age='$Age',
    RevN3='$RevN3',
    RevN2='$RevN2',
    RevN1='$RevN1',
    Anciennete='$Anciennete',
    TypeInv='$TypeInv',
    RevInvalidite='$RevInvalidite',
    EmploiConjoint='$EmploiConjoint',
    AgeConjoint='$AgeConjoint',
    RevConjointN2='$RevConjointN2',
    RevConjointN3='$RevConjointN3',
    RevConjointN1='$RevConjointN1',
    AncienneteConjoint='$AncienneteConjoint',
    TypeInvConjoint='$TypeInvConjoint',
    RevInvaliditeConjoint='$RevInvaliditeConjoint',
    ficpimmo='$ficpimmo',
    imporet='$imporet',
    mensimmo='$mensimmo'
    WHERE id='".$_REQUEST['id']."'";
     
     
    mysql_query ($sql);
    echo mysql_error();
     
    }
    elseif ($_REQUEST['action']=="suppr" and $_REQUEST['id']>=1)
    {
    $sql="DELETE FROM client WHERE id='".$_REQUEST['id']."'";
    mysql_query ($sql);
    header("location: partenaire2.php");
    }
     
     
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>rachat credit, rachat de crédit, rachat de credits,rachat de crédits</title>
    <link href="css/template.css" rel="stylesheet" type="text/css" />
    <meta name="description" content="baisser mes mensualités, simulation rachat credit avec réponse immediate, organisme de restructuration et de regroupement de crédits, rachat de crédits " />
    <meta name="keywords" content="rachat credit,rachat credits,rachat crédit,rachat de credit,rachat de credit"/>
     
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function ValidForm() {
      document.form1.submit();
      <?php $_POST['Submit' ] = "ZapMsgError"; ?>
    }
     
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    }
    //-->
    </script>
    </head>
     
    <body>
     
    <div id="header">
    	<div id="loc2"><img src="photodivers/logogauche.jpg" alt="rachat credit" /></div>
        <div id="sidecol">
          <p class="style1">LOCATAIRE</p>      <h1 class="style2">RACHAT DE CREDIT</h1>
          <p class="style3">PROPRIETAIRE </p>
          <p class="style3">&nbsp;</p>
        </div>
     
    </div>
    <div id="milieu">
     
    <div id="menu">
    <td align="center">
    <a href="partenaire2.php" class="style14">accueil&nbsp;</a>
    <a href="final2.php?id=<?php echo $id;?>" class="style14">d&eacute;tail</a>
    <a href="avancement.php?id=<?php echo $id;?>" class="style14">avancement&nbsp;</a>
    <a href="ficheclient.php?id=<?php echo $id;?>" class="style14">fiche client&nbsp;</a>
    <a href="document.php?id=<?php echo $id;?>" class="style14">Documents </a></td>
     
    </div>
     <tr>
         <td align="center" border="1">
              <tr>
                <td height="408"><form action="ficheclientmodif.php" method="post">
    			<input type="hidden"  name="enregistre" value="maj" />
    			<input type="hidden" name="id" value="<?php echo $_REQUEST['id']; ?>" />
     
    				  <?php $dossier2= $client['dossier'];
    				  		echo "N° dossier $dossier2 "; 
    						?>
     
                    <table width="400" border="0" align="center" cellpadding="5" cellspacing="0">
                      <tr>
                        <td height="30" colspan="2">
     </span></td>
                      </tr>
     
     
                      <tr>
                        <td colspan="2">&nbsp;</td>
        </tr>
                      <tr>
                        <td width="127" align="right"class="style11">connu par  </td>
                        <td width="253" align="left"class="style13" ><label>
                          <input type="text" name="connu" value="<?php echo $client['connu']; ?>" />
                        </label></td>
                      </tr>
     
                      <tr>
                        <td align="right" class="style11">nom client </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="nom" value="<?php echo $client['nom']; ?>"/>
                        </label></td>
                      </tr>
     
                      <tr>
                        <td align="right"class="style11">pr&eacute;nom client </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="prenom" value="<?php echo $client['prenom']; ?>"/>
                        </label></td>
                      </tr>
    				                   <tr>
                        <td align="right"class="style11">rue</td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="rue" value="<?php echo $client['rue']; ?>"/>
                        </label></td>
                      </tr>				                   <tr>
                        <td align="right"class="style11">ville</td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="ville" value="<?php echo $client['ville']; ?>"/>
                        </label></td>
                      </tr>				                   <tr>
                        <td align="right"class="style11">departement</td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="dep" value="<?php echo $client['dep']; ?>"/>
                        </label></td>
                      </tr>				                   <tr>
                        <td align="right"class="style11">tel fixe </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="fixe" value="<?php echo $client['fixe']; ?>"/>
                        </label></td>
                      </tr>				                   <tr>
                        <td align="right"class="style11">tel mobile </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="mobile" value="<?php echo $client['mobile']; ?>"/>
                        </label></td>
                      </tr>		
    				  <tr>
                        <td align="right"class="style11">mail </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="mail" value="<?php echo $client['mail']; ?>"/>
                        </label></td>
                      </tr>	
    				                    <tr>
                        <td colspan="2"><strong class="style12">Situation familiale </strong> </td>
                      </tr>
    				                    <tr>
                        <td align="right" class="style11">Situation logement : </td>
                        <td align="left"  class="style13"><select name="SitLog" id="SitLog">
                            <option value="">Selectionnez</option>
                           <option value="Proprietaire"<?php if ($client['SitLog'] == "Proprietaire")
    					   echo "SELECTED";?>>Proprietaire</option>						
                           <option value="Locataire"<?php if ($client['SitLog'] == "Locataire")
    					   echo "SELECTED";?>>Locataire</option>
                           <option value="GratuitFamille"<?php if ($client['SitLog'] == "GratuitFamille")
    					   echo "SELECTED";?>>GratuitFamille</option>
                           <option value="GratuitEmployeur"<?php if ($client['SitLog'] == "GratuitEmployeur")
    					   echo "SELECTED";?>>GratuitEmployeur</option>
     
                        </select></td>
                      </tr>		
    				                    <tr>
                        <td align="right" class="style11">Situation Familiale : </td>
                        <td align="left" class="style13"><select name="SitFam" id="SitFam" onchange="ValidForm()">
                             <option value="">Selectionnez</option>
                           <option value="2"<?php if ($client['SitFam'] == "2")
    					   echo "SELECTED";?>>Marié</option>						 
                           <option value="1"<?php if ($client['SitFam'] == "1")
    					   echo "SELECTED";?>>Célibataire</option>
                           <option value="3"<?php if ($client['SitFam'] == "3")
    					   echo "SELECTED";?>>Divorce en cours</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td align="right" class="style11">Votre age : </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="Age" value="<?php echo $client['Age']; ?>"/>
                        </label></td>
                      </tr>
                      <?php
    	  if( isset($client['SitFam']) && $client['SitFam']=='2'){
    	  		?>
                      <tr>
                        <td align="right" class="style11">Age de votre conjoint : </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="AgeConjoint" value="<?php echo $client['AgeConjoint']; ?>"/>
                        </label></td>
                      </tr>
                      <?php
    	  }
    	  ?>
                      <tr>
                        <td align="right" class="style11">Nombre d'enfants &agrave; charge fiscalement: </td>
    					                    <td width="109" class="style13"><select name="NbEnfant" id="NbEnfant" onchange="ValidForm()"> 
    					   <option value="">Selectionnez</option>
    					   <option value="0"<?php if ($client['NbEnfant'] == "0")
    					   echo "SELECTED";?>>0</option>
                           <option value="1"<?php if ($client['NbEnfant'] == "1")
    					   echo "SELECTED";?>>1</option>
                           <option value="2"<?php if ($client['NbEnfant'] == "2")
    					   echo "SELECTED";?>>2</option>
                           <option value="3"<?php if ($client['NbEnfant'] == "3")
    					   echo "SELECTED";?>>3</option>
                           <option value="4"<?php if ($client['NbEnfant'] == "4")
    					   echo "SELECTED";?>>4</option>
                           <option value="5"<?php if ($client['NbEnfant'] == "5")
    					   echo "SELECTED";?>>5</option>
                           <option value="6"<?php if ($client['NbEnfant'] == "6")
    					   echo "SELECTED";?>>6</option>
                           <option value="7"<?php if ($client['NbEnfant'] == "7")
    					   echo "SELECTED";?>>7</option>
                           <option value="8"<?php if ($client['NbEnfant'] == "8")
    					   echo "SELECTED";?>>8</option>
                           <option value="9"<?php if ($client['NbEnfant'] == "9")
    					   echo "SELECTED";?>>9</option>
                           <option value="10"<?php if ($client['NbEnfant'] == "10")
    					   echo "SELECTED";?>>10</option>
                           <option value="11"<?php if ($client['NbEnfant'] == "11")
    					   echo "SELECTED";?>>11</option>
                           <option value="12"<?php if ($client['NbEnfant'] == "12")
    					   echo "SELECTED";?>>12</option>
                           <option value="13"<?php if ($client['NbEnfant'] == "13")
    					   echo "SELECTED";?>>13</option>
                           <option value="14"<?php if ($client['NbEnfant'] == "14")
    					   echo "SELECTED";?>>14</option>
                           <option value="15"<?php if ($client['NbEnfant'] == "15")
    					   echo "SELECTED";?>>15 et +</option>
     
     
                        </select></td>
                      </tr>
     
     
     
                      <tr>
                        <td align="right"class="style11"> Age de l'enfant 1: </td>
                        <td align="left" class="style13"><input name="AgeEnfant0" type="text" id="AgeEnfant0" value="<?php if (isset($client['AgeEnfant0'])){ echo htmlentities( stripslashes($client['AgeEnfant0']));} ?>" size="5" /> 
    <tr>
                      <?php
    	  if( isset($client['NbEnfant']) && $client['NbEnfant']>='2'){
    	  		?>
                      <tr>
                        <td align="right" class="style11">Age de l'enfant 2 : </td>
                        <td align="left" class="style13"><input name="AgeEnfant1" type="text" id="AgeEnfant1" value="<?php if (isset($client['AgeEnfant1'])){ echo htmlentities( stripslashes($client['AgeEnfant1']));} ?>" size="5" /></td>
                      </tr>
                      <?php
    	  }
    	  ?>
    	                    <?php
    	  if( isset($client['NbEnfant']) && $client['NbEnfant']>='3'){
    	  		?>
                      <tr>
                        <td align="right" class="style11">Age de l'enfant 3 : </td>
                        <td align="left" class="style13"><input name="AgeEnfant2" type="text" id="AgeEnfant2" value="<?php if (isset($client['AgeEnfant2'])){ echo htmlentities( stripslashes($client['AgeEnfant2']));} ?>" size="5" /> </td>
                      </tr>
                      <?php
    	  }
    	  ?>
    	                    <?php
    	  if( isset($client['NbEnfant']) && $client['NbEnfant']>='4'){
    	  		?>
                      <tr>
                        <td align="right" class="style11">Age de l'enfant 4 : </td>
                        <td align="left" class="style13"><input name="AgeEnfant3" type="text" id="AgeEnfant3" value="<?php if (isset($client['AgeEnfant3'])){ echo htmlentities( stripslashes($client['AgeEnfant3']));} ?>" size="5" /> </td>
                      </tr>
                      <?php
    	  }
    	  ?>
    	                    <?php
    	  if( isset($client['NbEnfant']) && $client['NbEnfant']>='5'){
    	  		?>
                      <tr>
                        <td align="right" class="style11">Age de l'enfant 5 : </td>
                        <td align="left" class="style13"><input name="AgeEnfant4" type="text" id="AgeEnfant4" value="<?php if (isset($client['AgeEnfant4'])){ echo htmlentities( stripslashes($client['AgeEnfant4']));} ?>" size="5" /> </td>
                      </tr>
                      <?php
    	  }
    	  ?>
     
                        <td colspan="2"><strong class="style12">Situation professionnelle</strong></td>
                      </tr>
                      <tr>
                        <td class="style11">Emploi
                          : </td>
                        <td class="style13"><select name="Emploi" id="Emploi" onchange="ValidForm()">
    										   <option value="">Selectionnez</option>
                           <option value="salarie"<?php if ($client2 == "salarie")
    					   echo "SELECTED";?>>salarie</option>
    					   <option value="fonct"<?php if ($client2 == "fonct")
    					   echo "SELECTED";?>>fonctionnaire</option>
                           <option value="retraite"<?php if ($client2 == "retraite")
    					   echo "SELECTED";?>>retraite</option>
                           <option value="matern"<?php if ($client2 == "matern")
    					   echo "SELECTED";?>>assistante maternelle</option>
                           <option value="anpe"<?php if ($client2 == "anpe")
    					   echo "SELECTED";?>>ANPE dispensé de recherche d'Emploi</option>
                           <option value="congepar"<?php if ($client2 == "congepar")
    					   echo "SELECTED";?>>conge parental</option>
                           <option value="proflib"<?php if ($client2 == "proflib")
    					   echo "SELECTED";?>>prof lib</option>	
                           <option value="nonsal"<?php if ($client2 == "nonsal")
    					   echo "SELECTED";?>>non salarie</option>	
                           <option value="ces"<?php if ($client2 == "ces")
    					   echo "SELECTED";?>>cheque emploi service</option>		
                           <option value="autre"<?php if ($client2 == "autre")
    					   echo "SELECTED";?>>autre</option>	
                        </select></td>
                      </tr>
     
     
    					<?php
    					if( isset($client2)){
    						if ($client2=="salarie" ||$client2=="fonct" || $client2=="commercial" || $client2=="matern"|| $client2=="ces" || $client2=="congepar"  ){
    							?>
    							<tr>
    							<td class="style11">Anciennet&eacute; : </td>
    							<td class="style13"><select name="Anciennete" id="Anciennete">
    					   <option value="">Selectionnez</option>
                           <option value="1"<?php if ($client['Anciennete'] == "1")
    					   echo "SELECTED";?>>moins d'un mois</option>
                           <option value="2"<?php if ($client['Anciennete'] == "2")
    					   echo "SELECTED";?>>entre 1 et 6 mois</option>
                           <option value="3"<?php if ($client['Anciennete'] == "3")
    					   echo "SELECTED";?>>de 6 mois à 2 ans</option>
                           <option value="4"<?php if ($client['Anciennete'] == "4")
    					   echo "SELECTED";?>>de 2 ans à 3 ans</option>
    					   <option value="5"<?php if ($client['Anciennete'] == "5")
    					   echo "SELECTED";?>>+ de 3 ans</option>
    							</select></td>
    							</tr>
    							<tr>
    							<td class="style11">Type de contrat : </td>
    							<td class="style13"><select name="Contrat" id="Contrat">
    					   <option value="">Selectionnez</option>
    					   <option value="cdi"<?php if ($client['Contrat'] == "cdi")
    					   echo "SELECTED";?>>cdi, titulaire</option>
                           <option value="cdd"<?php if ($client['Contrat'] == "cdd")
    					   echo "SELECTED";?>>cdd</option>
                           <option value="inter"<?php if ($client['Contrat'] == "inter")
    					   echo "SELECTED";?>>interim</option>
    							</select></td>
    							</tr>
    							 <?php
    						}
    					}
    					?>
     
     
     
     
     
     
     
     
     
     
     
                      <?php
    	  if( isset( $client['SitFam']) && $client['SitFam']=='2'){
    	  	?>
                      <tr>
                        <td colspan="2"><strong class="style12">Situation professionelle
                            du conjoint </strong></td>
                      </tr>
                      <tr>
                        <td class="style11">Emploi
                          : </td>
                        <td class="style13"><select name="EmploiConjoint" id="EmploiConjoint" onchange="ValidForm()">
    										   <option value="">Selectionnez</option>
                           <option value="salarie"<?php if ($client['EmploiConjoint'] == "salarie")
    					   echo "SELECTED";?>>salarie</option>
    					   <option value="fonct"<?php if ($client['EmploiConjoint'] == "fonct")
    					   echo "SELECTED";?>>fonctionnaire</option>
                           <option value="retraite"<?php if ($client['EmploiConjoint'] == "retraite")
    					   echo "SELECTED";?>>retraite</option>
                           <option value="matern"<?php if ($client['EmploiConjoint'] == "matern")
    					   echo "SELECTED";?>>assistante maternelle</option>
                           <option value="anpe"<?php if ($client['EmploiConjoint'] == "anpe")
    					   echo "SELECTED";?>>ANPE dispensé de recherche d'Emploi</option>
                           <option value="congepar"<?php if ($client['EmploiConjoint'] == "congepar")
    					   echo "SELECTED";?>>conge parental</option>
                           <option value="proflib"<?php if ($client['EmploiConjoint'] == "proflib")
    					   echo "SELECTED";?>>prof lib</option>	
                           <option value="nonsal"<?php if ($client['EmploiConjoint'] == "nonsal")
    					   echo "SELECTED";?>>non salarie</option>	
                           <option value="ces"<?php if ($client['EmploiConjoint'] == "ces")
    					   echo "SELECTED";?>>cheque emploi service</option>		
                           <option value="autre"<?php if ($client['EmploiConjoint'] == "autre")
    					   echo "SELECTED";?>>autre</option>	
                        </select></td>
                      </tr>
    				                   <?php
    	  }
    	  ?>
                              <?php
    	  if( isset( $client['SitFam']) && $client['SitFam']=='2' && isset( $client['EmploiConjoint']) ){
    	  		if ($client['EmploiConjoint']=="salarie" || $client['EmploiConjoint']=="fonct" ||$client['EmploiConjoint']=="commercial" || $client['EmploiConjoint']=="matern"|| $client['EmploiConjoint']=="ces" || $client['EmploiConjoint']=="congepar"){
    	  	?>          <tr>
                        <td class="style11">Anciennet&eacute; : </td>
                        <td class="style13"><select name="AncienneteConjoint" id="AncienneteConjoint">
    					   <option value="">Selectionnez</option>
    					   <option value="1"<?php if ($client['AncienneteConjoint']=="1")
    					   echo "SELECTED";?>>moins d'un mois</option>
                           <option value="2"<?php if ($client['AncienneteConjoint']=="2")
    					   echo "SELECTED";?>>entre 1 et 6 mois</option>
                           <option value="3"<?php if ($client['AncienneteConjoint']=="3")
    					   echo "SELECTED";?>>de 6 mois à 2 ans</option>
                           <option value="4"<?php if ($client['AncienneteConjoint']=="4")
    					   echo "SELECTED";?>>de 2 ans à 3 ans</option>
    					   <option value="5"<?php if ($client['AncienneteConjoint']=="5")
    					   echo "SELECTED";?>>+ de 3 ans</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td class="style11"> Type
                          de contrat : </td>
                        <td class="style13"><select name="ContratConjoint" id="ContratConjoint">
    					   <option value="">Selectionnez</option>
    					   <option value="cdi"<?php if ($ContratConjoint2=="cdi")
    					   echo "SELECTED";?>>cdi, titulaire</option>
                           <option value="cdd"<?php if ($ContratConjoint2=="cdd")
    					   echo "SELECTED";?>>cdd</option>
                           <option value="inter"<?php if ($ContratConjoint2=="inter")
    					   echo "SELECTED";?>>interim</option>
                        </select></td>
                      </tr>
    				  					 <?php
    						}
    					}
    					?>
     
     
                      <tr>
                        <td colspan="2"><strong class="style12">Les revenus du
                            foyer </strong></td>
                      </tr>
                      <tr>
                        <td class="style11">Cumul annuel net imposable  2009  : </td>
                        <td class="style13"><input name="RevN1" type="text" id="RevN1" value="<?php if (isset($client['RevN1'])){ echo htmlentities( stripslashes($client['RevN1']));} ?>" size="5" />                      €</td>
                      </tr>
     
    	 <?php
    	if( isset($client2) ) {
    		if ($client2=="commercial" || $client2=="proflib"|| $client2=="nonsal" ){
    			?> 
    			<tr>
    			<td class="style11">Cumul  annuel net imposable 2008 :</td>
    			<td class="style13">
    			<input name="RevN2" type="text" id="RevN2" value="<?php if (isset($client['RevN2'])){ echo htmlentities( stripslashes($client['RevN2']));} ?>" size="5" />
    			€</td>
    			</tr>
    			<tr>
    			<td class="style11">Cumul  annuel net imposable 2007</td>
    			<td class="style13">
    			<input name="RevN3" type="text" id="RevN3" value="<?php if (isset($client['RevN3'])){ echo htmlentities( stripslashes($client['RevN3']));} ?>" size="5" />
    			€</td>
    			</tr>
    			<?php
    		}
    	}
    	?>
     
     
     
       <?php
      if( $client['SitFam']=='2'){
    		?>  
    		<tr>
    		<td class="style11">Cumul net imposable de votre conjoint
    		  2009</td>
    		<td class="style13">
    		<input name="RevConjointN1" type="text" id="RevConjointN1"
    		value="<?php if (isset($client['RevConjointN1'])){ echo htmlentities( stripslashes($client['RevConjointN1']));} ?>" size="5" />
    		€</td>
    		</tr>        
    		 <?php
    	}
      	?>
     
     
     
    	<?php
    	if( isset($client['EmploiConjoint'])){
    		if ($client['EmploiConjoint']=="commercial" || $client['EmploiConjoint']=="proflib" || $client['EmploiConjoint']=="nonsal" ){
    			?>
    			<tr>
    			<td class="style11">Cumul net imposable de votre conjoint
    			  2008</td>
    			<td class="style13">
    			<input name="RevConjointN2" type="text" id="RevConjointN2"
    			value="<?php if (isset($client['RevConjointN2'])){ echo htmlentities( stripslashes($client['RevConjointN2']));} ?>" size="5" />
    			€</td>
    			</tr>
     
    			<tr>
    			<td class="style11">Cumul net imposable de votre conjoint
    			  2007</td>
    			<td class="style13">
    			<input name="RevConjointN3" type="text" id="RevConjointN3" 
    			value="<?php if (isset($client['RevConjointN3'])){ echo htmlentities( stripslashes($client['RevConjointN3']));} ?>" size="5" />
    			€</td>
    			</tr>
    			<?php
    		}		
    	}
    	?>
     
     
    				   <?php
    	  if( $client['NbEnfant']>'0'){
    	  	?>                
    		 <tr>
                        <td class="style11">allocations familiales mensuelles:</td>
                        <td class="style13"><input name="AllocFam" type="text" id="AllocFam" value="<?php if (isset($client['AllocFam'])){ echo htmlentities( stripslashes($client['AllocFam']));} ?>" size="5" />
                          €</td>
        </tr>
                      <?php
    	  }
    	  ?>
                      <?php
    	  if( $client['SitLog']=='Locataire'){
    	  	?>
                      <tr>
                        <td class="style11">allocations logement mensuelles : </td>
                        <td align="left"><input name="AllocLog" type="text" id="AllocLog" value="<?php if (isset($client['AllocLog'])){ echo htmlentities( stripslashes($client['AllocLog']));} ?>" size="5" />
                            <span class="FiletBas"> €</span></td>
                      </tr>
                      <?php
    	  }
    	  ?>
                      <tr>
                        <td class="style11">pension alimentaire re&ccedil;ue mensuelle :</td>
                        <td class="style13"><input name="PensRecue" type="text" id="PensRecue" value="<?php if (isset($client['PensRecue'])){ echo htmlentities( stripslashes($client['PensRecue']));} ?>" size="5" />
                          €</td>
                      </tr>
                      <tr>
                        <td class="style11">revenus fonciers bruts mensuelles:</td>
                        <td class="style13"><input name="RevFonc" type="text" id="RevFonc" value="<?php if (isset($client['RevFonc'])){ echo htmlentities( stripslashes($client['RevFonc']));} ?>" size="5" />
                          €</td>
                      </tr>
                      <tr>
                        <td class="style11">vos revenus annuels d'invalidit&eacute;</td>
                        <td align="left"><input name="RevInvalidite" type="text" id="RevInvalidite" value="<?php if (isset($client['RevInvalidite'])){ echo htmlentities( stripslashes($client['RevInvalidite']));} ?>" size="5" />
                          €</td>
                      </tr>
                      <tr>
                        <td class="style11">type invalidit&eacute;</td>
                        <td class="style13"><select name="TypeInv" id="TypeInv">
                            <option value="">Sélectionner</option>
                           <option value="1"<?php if ($client['TypeInv'] == "1")
    					   echo "SELECTED";?>>1</option>
                           <option value="2"<?php if ($client['TypeInv'] == "2")
    					   echo "SELECTED";?>>2</option>
                           <option value="3"<?php if ($client['TypeInv'] == "3")
    					   echo "SELECTED";?>>3</option>
                          </select>                    </td>
                      </tr>
                      <?php
    	if( $client['SitFam'] == "2" ){						
    	  	?>
                      <tr>
                        <td class="style11">revenus annuels d'invalidit&eacute;                   de
                          votre conjoint</td>
                        <td align="left"><input name="RevInvaliditeConjoint" type="text" id="RevInvaliditeConjoint"
    		value="<?php if (isset($client['RevInvaliditeConjoint'])){ echo htmlentities( stripslashes($client['RevInvaliditeConjoint']));} ?>" size="5" />
                        €</td>
                      </tr>
                      <tr>
                        <td class="style11">type invalidit&eacute; de
                          votre conjoint </td>
                        <td class="style13"><select name="TypeInvConjoint" id="TypeInvConjoint">
                            <option value="">Selectionnez</option>
                           <option value="1"<?php if ($client['TypeInvConjoint'] == "1")
    					   echo "SELECTED";?>>1</option>
                           <option value="2"<?php if ($client['TypeInvConjoint'] == "2")
    					   echo "SELECTED";?>>2</option>
                           <option value="3"<?php if ($client['TypeInvConjoint'] == "3")
    					   echo "SELECTED";?>>3</option>
                        </select>                    </td>
                      </tr>
                      <?php
    	}
    	?>
                      <tr>
                        <td colspan="2"><strong class="style12">Les charges du
                            foyer </strong></td>
                      </tr>
                      <?php if( isset($client['SitLog']) && $client['SitLog']=='Locataire'){ ?>
                      <tr>
                        <td class="style11">loyer hors charges :</td>
                        <td class="style13">
                          <input name="loyer" type="text" id="loyer"  value="<?php if (isset($client['loyer'])){ echo htmlentities( stripslashes($client['loyer']));} ?>" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
                      <tr>
     
                        <td class="style11">charges de copropri&eacute;t&eacute;: </td>
                        <td class="style13"><input name="charges" type="text" id="charges"  value="<?php if (isset($client['charges'])){ echo htmlentities( stripslashes($client['charges']));} ?>" size="6" maxlength="10"/>                      &euro;                   </td>
                      </tr>
                      <?php }?>
                      <tr>
                        <td class="style11">pension alimentaire due : </td>
                        <td class="style13">
                          <input name="pensdue" type="text" id="pensdue"  value="<?php if (isset($client['pensdue'])){ echo htmlentities( stripslashes($client['pensdue']));} ?>" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
                      <tr>
                        <td colspan="2"><strong class="style12">Les cr&eacute;dits
                            du foyer </strong></td>
                      </tr>
                      <tr>
                        <td class="style11">capitaux restants :cr&eacute;dits consommation
                          /r&eacute;volving </td>
                        <td class="style13" valign="middle" nowrap>
                          <input name="credcons" type="text" id="credcons"  value="<?php if (isset($client['credcons'])){ echo htmlentities( stripslashes($client['credcons']));} ?>" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
                      <tr>
                        <td class="style11">vos mensualit&eacute;s: cr&eacute;dits
                          consommation /r&eacute;volving </td>
                        <td class="style13" nowrap><input name="menscons" type="text" id="menscons"  value="<?php if (isset($client['menscons'])){ echo htmlentities( stripslashes($client['menscons']));} ?>" size="6" maxlength="10"/>
                        &euro; </td>
                      </tr>
                      <?php  if( isset($client['SitLog']) && $client['SitLog']=='Proprietaire'){ ?>
                      <tr>
                        <td class="style11">capitaux restant :cr&eacute;dits immobilier</td>
                        <td class="style13" nowrap>
                          <input name="credimmo" type="text" id="credimmo"  value="<?php if (isset($client['credimmo'])){ echo htmlentities( stripslashes($client['credimmo']));} ?>" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
                      <tr>
                        <td class="style11">vos mensualit&eacute;s: cr&eacute;dits
                          immobilier</td>
                        <td class="style13" nowrap><input name="mensimmo" type="text" id="mensimmo"  value="<?php if (isset($client['mensimmo'])){ echo htmlentities( stripslashes($client['mensimmo']));} ?>" size="6" maxlength="10"/>
                        &euro; </td>
                      </tr>
                      <tr>
                        <td class="style11">valeur estim&eacute;e de votre bien 
                          immobilier</td>
                        <td class="style13" nowrap><input name="valbienimmo" type="text" id="valbienimmo"  value="<?php if (isset($client['valbienimmo'])){ echo htmlentities( stripslashes($client['valbienimmo']));} ?>" size="6" maxlength="10"/>
                          &euro; </td>
                      </tr>
                      <?php }?>
     
                      <tr>
                        <td colspan="2"><strong class="style12">Vos besoins </strong></td>
                      </tr>
                      <tr>
                        <td class="style11">D&eacute;couvert bancaire et cr&eacute;dits en retard </td>
                        <td class="style13"><input name="decouv" type="text" id="decouv"  value="<?php if (isset($client['decouv'])){ echo htmlentities( stripslashes($client['decouv']));} ?>" size="6" maxlength="10"/>                      &euro;                    </td>
                      </tr>
                      <tr>
                        <td class="style11">Dettes familiales </td>
                        <td class="style13">
                          <input name="detfam" type="text" id="detfam"  value="<?php if (isset($client['detfam'])){ echo htmlentities( stripslashes($client['detfam']));} ?>" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
                      <tr>
                        <td class="style11">Tr&eacute;sorerie souhait&eacute;e </td>
                        <td class="style13">
                          <input name="tresorerie" type="text" id="tresorerie"  value="<?php if (isset($client['tresorerie'])){ echo htmlentities( stripslashes($client['tresorerie']));} ?>" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
                      <tr>
                        <td colspan="2"><strong class="style12">Divers</strong></td>
                      </tr>
    				                    <tr>
                        <td class="style11">Avez vous une saisie salaire : </td>
                        <td class="style13"><select name="saisie" id="saisie">
                           <option value="non"<?php if ($client['saisie'] == "non")
    					   echo "SELECTED";?>>non</option>
                           <option value="oui"<?php if ($client['saisie'] == "oui")
    					   echo "SELECTED";?>>oui</option>
                        </select></td>
                      </tr>
    				                    <tr>
                        <td class="style11">Avez vous un avis &agrave; tiers
                            d&eacute;tenteur : </td>
                        <td class="style13"><select name="atd" id="atd">
                           <option value="non"<?php if ($client['atd'] == "non")
    					   echo "SELECTED";?>>non</option>
                           <option value="oui"<?php if ($client['atd'] == "oui")
    					   echo "SELECTED";?>>oui</option>
                        </select></td>
                      </tr>
    				                    <tr>
                        <td class="style11">Avez vous un interdit de ch&eacute;quier : </td>
                        <td class="style13"><select name="fcc" id="fcc">
                           <option value="non"<?php if ($client['fcc'] == "non")
    					   echo "SELECTED";?>>non</option>
                           <option value="oui"<?php if ($client['fcc'] == "oui")
    					   echo "SELECTED";?>>oui</option>
                        </select></td>
                      </tr>
    				                    <tr>
                        <td class="style11">Etes vous g&eacute;r&eacute; par un service contentieux : </td>
                        <td class="style13"><select name="ctx" id="ctx">
                           <option value="non"<?php if ($client['ctx'] == "non")
    					   echo "SELECTED";?>>non</option>
                           <option value="oui"<?php if ($client['ctx'] == "oui")
    					   echo "SELECTED";?>>oui</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td class="style11">Nombre de mensualit&eacute; de cr&eacute;dit
                          consomation en retard : </td>
                        <td class="style13"><select name="nbcred" id="nbcred">
                           <option value="0"<?php if ($client['nbcred'] == "0")
    					   echo "SELECTED";?>>0</option>
                           <option value="1"<?php if ($client['nbcred'] == "1")
    					   echo "SELECTED";?>>1</option>
                           <option value="2"<?php if ($client['nbcred'] == "2")
    					   echo "SELECTED";?>>2</option>
                           <option value="3"<?php if ($client['nbcred'] == "3")
    					   echo "SELECTED";?>>3</option>
                           <option value="4"<?php if ($client['nbcred'] == "4")
    					   echo "SELECTED";?>>4</option>
                           <option value="5"<?php if ($client['nbcred'] == "5")
    					   echo "SELECTED";?>>5</option>
                           <option value="6"<?php if ($client['nbcred'] == "6")
    					   echo "SELECTED";?>>6</option>
                           <option value="7"<?php if ($client['nbcred'] == "7")
    					   echo "SELECTED";?>>7</option>
                           <option value="8"<?php if ($client['nbcred'] == "8")
    					   echo "SELECTED";?>>8</option>
                           <option value="9"<?php if ($client['nbcred'] == "9")
    					   echo "SELECTED";?>>9</option>
                           <option value="10"<?php if ($client['nbcred'] == "10")
    					   echo "SELECTED";?>>10</option>
                           <option value="11"<?php if ($client['nbcred'] == "11")
    					   echo "SELECTED";?>>11</option>
                           <option value="12"<?php if ($client['nbcred'] == "12")
    					   echo "SELECTED";?>>12</option>
                           <option value="13"<?php if ($client['nbcred'] == "13")
    					   echo "SELECTED";?>>13</option>
                           <option value="14"<?php if ($client['nbcred'] == "14")
    					   echo "SELECTED";?>>14</option>
                           <option value="15"<?php if ($client['nbcred'] == "15")
    					   echo "SELECTED";?>>15 et +</option>
     
                        </select></td>
                      </tr>
     
                      <tr>
                        <td class="style11">Etes vous fich&eacute; pour l'un de vos
                          pr&ecirc;ts consomation : </td>
                        <td class="style13"><select name="ficp" id="ficp">
                           <option value="non"<?php if ($client['ficp'] == "non")
    					   echo "SELECTED";?>>non</option>
                           <option value="oui"<?php if ($client['ficp'] == "oui")
    					   echo "SELECTED";?>>oui</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td class="style11">Nombre des rejets (hors pr&ecirc;ts) sur 3 mois : </td>
                        <td class="style13"><select name="rejet" id="rejet">
                           <option value="0"<?php if ($client['rejet'] == "0")
    					   echo "SELECTED";?>>0</option>
                           <option value="1"<?php if ($client['rejet'] == "1")
    					   echo "SELECTED";?>>1</option>
                           <option value="2"<?php if ($client['rejet'] == "2")
    					   echo "SELECTED";?>>2</option>
                           <option value="3"<?php if ($client['rejet'] == "3")
    					   echo "SELECTED";?>>3</option>
                           <option value="4"<?php if ($client['rejet'] == "4")
    					   echo "SELECTED";?>>4</option>
                           <option value="5"<?php if ($client['rejet'] == "5")
    					   echo "SELECTED";?>>5</option>
                           <option value="6"<?php if ($client['rejet'] == "6")
    					   echo "SELECTED";?>>6</option>
                           <option value="7"<?php if ($client['rejet'] == "7")
    					   echo "SELECTED";?>>7</option>
                           <option value="8"<?php if ($client['rejet'] == "8")
    					   echo "SELECTED";?>>8</option>
                           <option value="9"<?php if ($client['rejet'] == "9")
    					   echo "SELECTED";?>>9</option>
                           <option value="10"<?php if ($client['rejet'] == "10")
    					   echo "SELECTED";?>>10</option>
                           <option value="11"<?php if ($client['rejet'] == "11")
    					   echo "SELECTED";?>>11</option>
                           <option value="12"<?php if ($client['rejet'] == "12")
    					   echo "SELECTED";?>>12</option>
                           <option value="13"<?php if ($client['rejet'] == "13")
    					   echo "SELECTED";?>>13</option>
                           <option value="14"<?php if ($client['rejet'] == "14")
    					   echo "SELECTED";?>>14</option>
                           <option value="15"<?php if ($client['rejet'] == "15")
    					   echo "SELECTED";?>>15 et +</option>
                        </select></td>
                      </tr>
                      <?php if( isset($client['SitLog']) && $client['SitLog']=='Locataire'){ ?>
                      <tr>
                        <td class="style11">Nombre de loyers en retard : </td>
                        <td class="style13"><select name="loyerret" id="loyerret">
                           <option value="0"<?php if ($client['loyerret'] == "0")
    					   echo "SELECTED";?>>0</option>
                           <option value="1"<?php if ($client['loyerret'] == "1")
    					   echo "SELECTED";?>>1</option>
                           <option value="2"<?php if ($client['loyerret'] == "2")
    					   echo "SELECTED";?>>2</option>
                           <option value="3"<?php if ($client['loyerret'] == "3")
    					   echo "SELECTED";?>>3</option>
                           <option value="4"<?php if ($client['loyerret'] == "4")
    					   echo "SELECTED";?>>4</option>
                           <option value="5"<?php if ($client['loyerret'] == "5")
    					   echo "SELECTED";?>>5 et +</option>
                        </select></td>
                      </tr>
                      <?php } ?>
                      <?php if( isset($client['SitLog']) && $client['SitLog']=='Proprietaire'){ ?>
                      <tr>
                        <td class="style11">Nombre de mensualit&eacute; de cr&eacute;dit
                          immobilier en retard : </td>
                        <td class="style13"><select name="immoret" id="immoret">
                           <option value="0"<?php if ($client['immoret'] == "0")
    					   echo "SELECTED";?>>0</option>
                           <option value="1"<?php if ($client['immoret'] == "1")
    					   echo "SELECTED";?>>1</option>
                           <option value="2"<?php if ($client['immoret'] == "2")
    					   echo "SELECTED";?>>2</option>
                           <option value="3"<?php if ($client['immoret'] == "3")
    					   echo "SELECTED";?>>3 et +</option>
                        </select></td>
                      </tr>
    				                    <tr>
                        <td class="style11">Nombre de pr&eacute;l&egrave;vements d'imp&ocirc;ts en retard : </td>
                        <td class="style13"><select name="imporet" id="imporet">
                           <option value="0"<?php if ($client['imporet'] == "0")
    					   echo "SELECTED";?>>0</option>
                           <option value="1"<?php if ($client['imporet'] == "1")
    					   echo "SELECTED";?>>1</option>
                           <option value="2"<?php if ($client['imporet'] == "2")
    					   echo "SELECTED";?>>2</option>
                           <option value="3"<?php if ($client['imporet'] == "3")
    					   echo "SELECTED";?>>3 et +</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td class="style11">Etes vous fich&eacute; pour l'un de vos
                          pr&ecirc;ts immobilier : </td>
                        <td class="style13"><select name="ficpimmo" id="ficpimmo">
                           <option value="non"<?php if ($client['ficpimmo'] == "non")
    					   echo "SELECTED";?>>non</option>
                           <option value="oui"<?php if ($client['ficpimmo'] == "oui")
    					   echo "SELECTED";?>>oui</option>
                        </select></td>
                      </tr>
                      <?php } ?>
    				   <tr>
                        <td class="style11">Avez vous d&eacute;j&agrave; fait un rachat de cr&eacute;dit
                          : </td>
                        <td class="style13"><select name="rachcred" id="rachcred" onchange="ValidForm()">
                           <option value="non"<?php if ($client['rachcred'] == "non")
    					   echo "SELECTED";?>>non</option>
                           <option value="oui"<?php if ($client['rachcred'] == "oui")
    					   echo "SELECTED";?>>oui</option>
                        </select></td>
                      </tr>  
     
                       <?php if(isset($client['rachcred']) &&  $client['rachcred']=='oui'){
    	  	?>
                      <tr>
                        <td class="style11">depuis quand : </td>
                        <td class="style13"><select name="rachcreddate" id="rachcreddate">
                           <option value="0"<?php if ($client['rachcreddate'] == "0")
    					   echo "SELECTED";?>>0</option>
                           <option value="1"<?php if ($client['rachcreddate'] == "1")
    					   echo "SELECTED";?>>1</option>
                           <option value="2"<?php if ($client['rachcreddate'] == "2")
    					   echo "SELECTED";?>>2</option>
                           <option value="3"<?php if ($client['rachcreddate'] == "3")
    					   echo "SELECTED";?>>3</option>
                           <option value="4"<?php if ($client['rachcreddate'] == "4")
    					   echo "SELECTED";?>>4 et +</option>
                           <option value="10"<?php if ($client['rachcreddate'] == "10")
    					   echo "SELECTED";?>>10</option>
                        </select></td>
                      </tr>
                      <?php
    	  }
    	  ?>
     
     
     
     
                      <tr>
                        <td class="style11">Etes vous en commission de surrendettement
                          : </td>
                        <td class="style13"><select name="comsur" id="comsur" onchange="ValidForm()">
                           <option value="non"<?php if ($client['comsur'] == "non")
    					   echo "SELECTED";?>>non</option>
                           <option value="oui"<?php if ($client['comsur'] == "oui")
    					   echo "SELECTED";?>>oui</option>
                        </select></td>
                      </tr>
                      <?php if(isset($client['comsur']) &&  $client['comsur']=='oui'){
    	  	?>
                      <tr>
                        <td class="style11">depuis quand : </td>
                        <td class="style13"><select name="comsurdate" id="comsurdate">
                           <option value="1"<?php if ($client['comsurdate'] == "1")
    					   echo "SELECTED";?>>moins de 6 mois</option>
                           <option value="1"<?php if ($client['comsurdate'] == "1")
    					   echo "SELECTED";?>>plus de 6 mois</option>
                        </select></td>
                      </tr>
                      <?php
    	  }
    	  ?>
     
    <tr>
                        <td align="right"class="style11">&nbsp;</td>
                        <td align="left" class="style13">					</td>
                      </tr>
                      <tr>
                        <td class="Style13">&nbsp;</td>
     
     
                        <td class="Style13"><select name="action">
    					<option value="maj"> Enregistrer la fiche </option>
    					<option value="suppr"> Supprimer la fiche </option>
    					</select>
    					</td>
                      </tr>
    				                   <tr>
                        <td align="right"class="style11">&nbsp;</td>
                        <td align="left" class="style13"><p align="left"><input type="submit" value="effectuer" /></td>
                      </tr>
     
                    </table>
                </form></td>
              </tr>
            </table>     </td>
      </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="20" align="center" bgcolor="#F4951F"><font color="#FFFFFF" size="-1">Aucun
              versement de quelque nature que ce soit ne peut &ecirc;tre exig&eacute; d'un
              particulier avant l'obtention d'un ou plusieurs pr&ecirc;ts d'argent. </font></td>
        </tr>
        <div id="footer"></div>
    </div>
     
    </body>
    </html>
    <?php mysql_close ($link); ?>

    merci de votre aide

  7. #7
    Expert confirmé
    Avatar de RomainVALERI
    Homme Profil pro
    POOête
    Inscrit en
    Avril 2008
    Messages
    2 652
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations professionnelles :
    Activité : POOête

    Informations forums :
    Inscription : Avril 2008
    Messages : 2 652
    Points : 4 164
    Points
    4 164
    Par défaut
    Citation Envoyé par kogoi Voir le message
    oups!
    Je n'avais pas compris pour le code (manque d'entrainement)
    Aucun souci

    Par contre, ça ne va pas encore tout-à-fait ^^
    Tu peux poster le code généré ?

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2009
    Messages : 105
    Points : 56
    Points
    56
    Par défaut
    ok!!!!
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>rachat credit, rachat de crédit, rachat de credits,rachat de crédits</title>
    <link href="css/template.css" rel="stylesheet" type="text/css" />
    <meta name="description" content="baisser mes mensualités, simulation rachat credit avec réponse immediate, organisme de restructuration et de regroupement de crédits, rachat de crédits " />
    <meta name="keywords" content="rachat credit,rachat credits,rachat crédit,rachat de credit,rachat de credit"/>
     
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function ValidForm() {
      document.form1.submit();
      }
     
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    }
    //-->
    </script>
    </head>
     
    <body>
     
    <div id="header">
     
    	<div id="loc2"><img src="photodivers/logogauche.jpg" alt="rachat credit" /></div>
        <div id="sidecol">
          <p class="style1">LOCATAIRE</p>      <h1 class="style2">RACHAT DE CREDIT</h1>
          <p class="style3">PROPRIETAIRE </p>
          <p class="style3">&nbsp;</p>
        </div>
     
    </div>
    <div id="milieu">
     
    <div id="menu">
    <td align="center">
    <a href="partenaire2.php" class="style14">accueil&nbsp;</a>
    <a href="final.php?id=1059" class="style14">d&eacute;tail</a>
    <a href="avancement.php?id=1059" class="style14">avancement&nbsp;</a>
    <a href="ficheclient.php?id=1059" class="style14">fiche client&nbsp;</a>
    <a href="document.php?id=1059" class="style14">Documents </a></td>
     
    </div>
     <tr>
         <td align="center" border="1">
              <tr>
                <td height="408"><form action="ficheclientmodif.php" method="post">
    			<input type="hidden"  name="enregistre" value="maj" />
    			<input type="hidden" name="id" value="1059" />
     
    				  N° dossier 14581 						
                    <table width="400" border="0" align="center" cellpadding="5" cellspacing="0">
     
                      <tr>
                        <td height="30" colspan="2">
     </span></td>
                      </tr>
     
     
                      <tr>
                        <td colspan="2">&nbsp;</td>
        </tr>
                      <tr>
     
                        <td width="127" align="right"class="style11">connu par  </td>
                        <td width="253" align="left"class="style13" ><label>
                          <input type="text" name="connu" value="forum" />
                        </label></td>
                      </tr>
     
                      <tr>
                        <td align="right" class="style11">nom client </td>
     
                        <td align="left" class="style13"><label>
                          <input type="text" name="nom" value="Gaillard"/>
                        </label></td>
                      </tr>
     
                      <tr>
                        <td align="right"class="style11">pr&eacute;nom client </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="prenom" value="olivier"/>
     
                        </label></td>
                      </tr>
    				                   <tr>
                        <td align="right"class="style11">rue</td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="rue" value="18 rue viz"/>
                        </label></td>
                      </tr>				                   <tr>
     
                        <td align="right"class="style11">ville</td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="ville" value="AVIGNON"/>
                        </label></td>
                      </tr>				                   <tr>
                        <td align="right"class="style11">departement</td>
                        <td align="left" class="style13"><label>
     
                          <input type="text" name="dep" value="0"/>
                        </label></td>
                      </tr>				                   <tr>
                        <td align="right"class="style11">tel fixe </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="fixe" value="0614105938"/>
                        </label></td>
                      </tr>				                   <tr>
     
                        <td align="right"class="style11">tel mobile </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="mobile" value="089098979"/>
                        </label></td>
                      </tr>		
    				  <tr>
                        <td align="right"class="style11">mail </td>
                        <td align="left" class="style13"><label>
     
                          <input type="text" name="mail" value="olivier.gaillard@cg13.fr"/>
                        </label></td>
                      </tr>	
    				                    <tr>
                        <td colspan="2"><strong class="style12">Situation familiale </strong> </td>
                      </tr>
    				                    <tr>
                        <td align="right" class="style11">Situation logement : </td>
     
                        <td align="left"  class="style13"><select name="SitLog" id="SitLog">
                            <option value="">Selectionnez</option>
                           <option value="Proprietaire">Proprietaire</option>						
                           <option value="Locataire"SELECTED>Locataire</option>
                           <option value="GratuitFamille">GratuitFamille</option>
                           <option value="GratuitEmployeur">GratuitEmployeur</option>
     
                        </select></td>
     
                      </tr>		
    				                    <tr>
                        <td align="right" class="style11">Situation Familiale : </td>
                        <td align="left" class="style13"><select name="SitFam" id="SitFam" onchange="ValidForm()">
                             <option value="">Selectionnez</option>
                           <option value="2">Marié</option>						 
                           <option value="1"SELECTED>Célibataire</option>
                           <option value="3">Divorce en cours</option>
     
                        </select></td>
                      </tr>
                      <tr>
                        <td align="right" class="style11">Votre age : </td>
                        <td align="left" class="style13"><label>
                          <input type="text" name="Age" value="45"/>
                        </label></td>
                      </tr>
     
                                        <tr>
                        <td align="right" class="style11">Nombre d'enfants &agrave; charge fiscalement: </td>
    					                    <td width="109" class="style13"><select name="NbEnfant" id="NbEnfant" onchange="ValidForm()"> 
    					   <option value="">Selectionnez</option>
    					   <option value="0"SELECTED>0</option>
                           <option value="1">1</option>
     
                           <option value="2">2</option>
                           <option value="3">3</option>
                           <option value="4">4</option>
                           <option value="5">5</option>
                           <option value="6">6</option>
                           <option value="7">7</option>
     
                           <option value="8">8</option>
                           <option value="9">9</option>
                           <option value="10">10</option>
                           <option value="11">11</option>
                           <option value="12">12</option>
                           <option value="13">13</option>
     
                           <option value="14">14</option>
                           <option value="15">15 et +</option>
     
     
                        </select></td>
                      </tr>
     
     
     
                      <tr>
                        <td align="right"class="style11"> Age de l'enfant 1: </td>
                        <td align="left" class="style13"><input name="AgeEnfant0" type="text" id="AgeEnfant0" value="18" size="5" /> 
     
    <tr>
     
                        <td colspan="2"><strong class="style12">Situation professionnelle</strong></td>
                      </tr>
                      <tr>
                        <td class="style11">Emploi
                          : </td>
                        <td class="style13"><select name="Emploi" id="Emploi" onchange="ValidForm()">
    										   <option value="">Selectionnez</option>
                           <option value="salarie">salarie</option>
     
    					   <option value="fonct"SELECTED>fonctionnaire</option>
                           <option value="retraite">retraite</option>
                           <option value="matern">assistante maternelle</option>
                           <option value="anpe">ANPE dispensé de recherche d'Emploi</option>
                           <option value="congepar">conge parental</option>
                           <option value="proflib">prof lib</option>	
                           <option value="nonsal">non salarie</option>	
                           <option value="ces">cheque emploi service</option>		
                           <option value="autre">autre</option>	
                        </select></td>
     
                      </tr>
     
     
    												<tr>
    							<td class="style11">Anciennet&eacute; : </td>
    							<td class="style13"><select name="Anciennete" id="Anciennete">
    					   <option value="">Selectionnez</option>
                           <option value="1">moins d'un mois</option>
     
                           <option value="2">entre 1 et 6 mois</option>
                           <option value="3">de 6 mois à 2 ans</option>
                           <option value="4">de 2 ans à 3 ans</option>
    					   <option value="5"SELECTED>+ de 3 ans</option>
    							</select></td>
    							</tr>
    							<tr>
     
    							<td class="style11">Type de contrat : </td>
    							<td class="style13"><select name="Contrat" id="Contrat">
    					   <option value="">Selectionnez</option>
    					   <option value="cdi"SELECTED>cdi, titulaire</option>
                           <option value="cdd">cdd</option>
                           <option value="inter">interim</option>
     
    							</select></td>
    							</tr>
     
     
     
     
     
     
     
     
     
     
     
     
     
                      <tr>
                        <td colspan="2"><strong class="style12">Les revenus du
                            foyer </strong></td>
                      </tr>
                      <tr>
                        <td class="style11">Cumul annuel net imposable  2009  : </td>
                        <td class="style13"><input name="RevN1" type="text" id="RevN1" value="24000" size="5" /></td>
     
                      </tr>
     
     
     
     
     
     
     
     
     
    				                                       <tr>
                        <td class="style11">allocations logement mensuelles : </td>
                        <td align="left"><input name="AllocLog" type="text" id="AllocLog" value="0" size="5" />
                            <span class="FiletBas"></span></td>
                      </tr>
                                        <tr>
                        <td class="style11">pension alimentaire re&ccedil;ue mensuelle :</td>
     
                        <td class="style13"><input name="PensRecue" type="text" id="PensRecue" value="0" size="5" /></td>
                      </tr>
                      <tr>
                        <td class="style11">revenus fonciers bruts mensuelles:</td>
                        <td class="style13"><input name="RevFonc" type="text" id="RevFonc" value="2400" size="5" /></td>
                      </tr>
     
                      <tr>
                        <td class="style11">vos revenus annuels d'invalidit&eacute;</td>
                        <td align="left"><input name="RevInvalidite" type="text" id="RevInvalidite" value="0" size="5" /></td>
                      </tr>
                      <tr>
                        <td class="style11">type invalidit&eacute;</td>
                        <td class="style13"><select name="TypeInv" id="TypeInv">
     
                            <option value="">Sélectionner</option>
                           <option value="1">1</option>
                           <option value="2">2</option>
                           <option value="3">3</option>
                          </select>                    </td>
                      </tr>
     
                                        <tr>
                        <td colspan="2"><strong class="style12">Les charges du
                            foyer </strong></td>
                      </tr>
                                        <tr>
                        <td class="style11">loyer hors charges :</td>
                        <td class="style13">
                          <input name="loyer" type="text" id="loyer"  value="500" size="6" maxlength="10"/>
    &euro;                    </td>
     
                      </tr>
                      <tr>
     
                        <td class="style11">charges de copropri&eacute;t&eacute;: </td>
                        <td class="style13"><input name="charges" type="text" id="charges"  value="0" size="6" maxlength="10"/>                      &euro;                   </td>
                      </tr>
                                        <tr>
     
                        <td class="style11">pension alimentaire due : </td>
                        <td class="style13">
                          <input name="pensdue" type="text" id="pensdue"  value="0" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
                      <tr>
                        <td colspan="2"><strong class="style12">Les cr&eacute;dits
                            du foyer </strong></td>
     
                      </tr>
                      <tr>
                        <td class="style11">capitaux restants :cr&eacute;dits consommation
                          /r&eacute;volving </td>
                        <td class="style13" valign="middle" nowrap>
                          <input name="credcons" type="text" id="credcons"  value="39000" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
     
                      <tr>
                        <td class="style11">vos mensualit&eacute;s: cr&eacute;dits
                          consommation /r&eacute;volving </td>
                        <td class="style13" nowrap><input name="menscons" type="text" id="menscons"  value="948" size="6" maxlength="10"/>
                        &euro; </td>
                      </tr>
     
                      <tr>
     
                        <td colspan="2"><strong class="style12">Vos besoins </strong></td>
                      </tr>
                      <tr>
                        <td class="style11">D&eacute;couvert bancaire et cr&eacute;dits en retard </td>
                        <td class="style13"><input name="decouv" type="text" id="decouv"  value="3000" size="6" maxlength="10"/>                      &euro;                    </td>
                      </tr>
     
                      <tr>
                        <td class="style11">Dettes familiales </td>
                        <td class="style13">
                          <input name="detfam" type="text" id="detfam"  value="0" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
                      <tr>
                        <td class="style11">Tr&eacute;sorerie souhait&eacute;e </td>
     
                        <td class="style13">
                          <input name="tresorerie" type="text" id="tresorerie"  value="3000" size="6" maxlength="10"/>
    &euro;                    </td>
                      </tr>
                      <tr>
                        <td colspan="2"><strong class="style12">Divers</strong></td>
                      </tr>
    				                    <tr>
     
                        <td class="style11">Avez vous une saisie salaire : </td>
                        <td class="style13"><select name="saisie" id="saisie">
                           <option value="non"SELECTED>non</option>
                           <option value="oui">oui</option>
                        </select></td>
                      </tr>
    				                    <tr>
     
                        <td class="style11">Avez vous un avis &agrave; tiers
                            d&eacute;tenteur : </td>
                        <td class="style13"><select name="atd" id="atd">
                           <option value="non"SELECTED>non</option>
                           <option value="oui">oui</option>
                        </select></td>
                      </tr>
     
    				                    <tr>
                        <td class="style11">Avez vous un interdit de ch&eacute;quier : </td>
                        <td class="style13"><select name="fcc" id="fcc">
                           <option value="non"SELECTED>non</option>
                           <option value="oui">oui</option>
                        </select></td>
                      </tr>
     
    				                    <tr>
                        <td class="style11">Etes vous g&eacute;r&eacute; par un service contentieux : </td>
                        <td class="style13"><select name="ctx" id="ctx">
                           <option value="non"SELECTED>non</option>
                           <option value="oui">oui</option>
                        </select></td>
     
                      </tr>
                      <tr>
                        <td class="style11">Nombre de mensualit&eacute; de cr&eacute;dit
                          consomation en retard : </td>
                        <td class="style13"><select name="nbcred" id="nbcred">
                           <option value="0"SELECTED>0</option>
                           <option value="1">1</option>
     
                           <option value="2">2</option>
                           <option value="3">3</option>
                           <option value="4">4</option>
                           <option value="5">5</option>
                           <option value="6">6</option>
                           <option value="7">7</option>
     
                           <option value="8">8</option>
                           <option value="9">9</option>
                           <option value="10">10</option>
                           <option value="11">11</option>
                           <option value="12">12</option>
                           <option value="13">13</option>
     
                           <option value="14">14</option>
                           <option value="15">15 et +</option>
     
                        </select></td>
                      </tr>
     
                      <tr>
                        <td class="style11">Etes vous fich&eacute; pour l'un de vos
                          pr&ecirc;ts consomation : </td>
     
                        <td class="style13"><select name="ficp" id="ficp">
                           <option value="non"SELECTED>non</option>
                           <option value="oui">oui</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td class="style11">Nombre des rejets (hors pr&ecirc;ts) sur 3 mois : </td>
     
                        <td class="style13"><select name="rejet" id="rejet">
                           <option value="0"SELECTED>0</option>
                           <option value="1">1</option>
                           <option value="2">2</option>
                           <option value="3">3</option>
                           <option value="4">4</option>
     
                           <option value="5">5</option>
                           <option value="6">6</option>
                           <option value="7">7</option>
                           <option value="8">8</option>
                           <option value="9">9</option>
                           <option value="10">10</option>
     
                           <option value="11">11</option>
                           <option value="12">12</option>
                           <option value="13">13</option>
                           <option value="14">14</option>
                           <option value="15">15 et +</option>
                        </select></td>
     
                      </tr>
                                        <tr>
                        <td class="style11">Nombre de loyers en retard : </td>
                        <td class="style13"><select name="loyerret" id="loyerret">
                           <option value="0"SELECTED>0</option>
                           <option value="1">1</option>
                           <option value="2">2</option>
     
                           <option value="3">3</option>
                           <option value="4">4</option>
                           <option value="5">5 et +</option>
                        </select></td>
                      </tr>
                                        				   <tr>
                        <td class="style11">Avez vous d&eacute;j&agrave; fait un rachat de cr&eacute;dit
                          : </td>
     
                        <td class="style13"><select name="rachcred" id="rachcred" onchange="ValidForm()">
                           <option value="non"SELECTED>non</option>
                           <option value="oui">oui</option>
                        </select></td>
                      </tr>  
     
     
     
     
     
                      <tr>
                        <td class="style11">Etes vous en commission de surrendettement
                          : </td>
                        <td class="style13"><select name="comsur" id="comsur" onchange="ValidForm()">
     
                           <option value="non"SELECTED>non</option>
                           <option value="oui">oui</option>
                        </select></td>
                      </tr>
     
    <tr>
                        <td align="right"class="style11">&nbsp;</td>
                        <td align="left" class="style13">					</td>
     
                      </tr>
                      <tr>
                        <td class="Style13">&nbsp;</td>
     
     
                        <td class="Style13"><select name="action">
    					<option value="maj"> Enregistrer la fiche </option>
    					<option value="suppr"> Supprimer la fiche </option>
     
    					</select>
    					</td>
                      </tr>
    				                   <tr>
                        <td align="right"class="style11">&nbsp;</td>
                        <td align="left" class="style13"><p align="left"><input type="submit" value="effectuer" /></td>
                      </tr>
     
                    </table>
                </form></td>
     
              </tr>
            </table>     </td>
      </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="20" align="center" bgcolor="#F4951F"><font color="#FFFFFF" size="-1">Aucun
              versement de quelque nature que ce soit ne peut &ecirc;tre exig&eacute; d'un
              particulier avant l'obtention d'un ou plusieurs pr&ecirc;ts d'argent. </font></td>
     
        </tr>
        <div id="footer"></div>
    </div>
     
    </body>
    </html>

  9. #9
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2009
    Messages : 105
    Points : 56
    Points
    56
    Par défaut formulaire préremplis
    pour info ce script est le résultat rafraichi (donc complet)

  10. #10
    Membre expérimenté
    Avatar de kaiser59
    Homme Profil pro
    Inscrit en
    Novembre 2005
    Messages
    1 264
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 1 264
    Points : 1 350
    Points
    1 350
    Par défaut
    Citation Envoyé par kogoi Voir le message
    Bjr
    Je ne sais pas si je post au bon endroit, mais j'ai un petit soucis.
    je remplis un formulaire qui alimente une bdd, celle ci est bien incrémentée.
    mais lorsque je valide le formulaire, les variables n'apparaissent pas immédiatement dans le formulaire, il faut que je rafraichisse la page.

    Il y a surement un moyen mais je ne trouve rien sur le sujet.
    Merci de votre aide.
    C'est un formulaire de modification ou d'ajout ?

  11. #11
    Membre confirmé
    Homme Profil pro
    Webmaster
    Inscrit en
    Janvier 2007
    Messages
    469
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Biens de consommation

    Informations forums :
    Inscription : Janvier 2007
    Messages : 469
    Points : 525
    Points
    525
    Par défaut
    Essaye peut être de jouer avec le cache :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    <?php
    header("Cache-Control: no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0"); 
    header('Pragma: no-cache'); 
    header("Expires: ".gmdate("D, d M Y H:i:s",time())." GMT"); 
    header("Last-Modified: ".gmdate("D, d M Y H:i:s",time()-30)." GMT");
    ?>
    En tout début de page.

  12. #12
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2009
    Messages : 105
    Points : 56
    Points
    56
    Par défaut formulaire préremplis
    salut à tous les 2
    pour répondre à kaiser59, c'est un complément d'une fiche déjà créée.
    Le client fournis des infos sur le net, puis je le rappelle pour compléter les infos manquantes.( adresse exacte,comment nous avez vous connu etc)
    C'est ces infos manquantes qui ne sont pas validées à la première validation, il me faut valider 2 fois ou rafraichir ma page.

    Pour Gaetan,
    Je ne sais pas ou mettre ton petit bout de script,
    je l'ai mis juste après le contrôle du mot de passe,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    <?php
            session_start();
            //Initialisation erreur
     
     
     
    if ($_SESSION['admin'] !=='XXXX' or $_SESSION['motpasse'] !=='XXXX')
                    {header("location: index.php");}
     
     header("Cache-Control: no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0"); 
    header('Pragma: no-cache'); 
    header("Expires: ".gmdate("D, d M Y H:i:s",time())." GMT"); 
    header("Last-Modified: ".gmdate("D, d M Y H:i:s",time()-30)." GMT");
     
    $link = mysql_connect("XXXXX", "XXXXX", "XXXXX");
    mysql_select_db ("XXXXX");
    mais cela ne marche pas.
    Ce n'est peut être pas le bon endroit.

  13. #13
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Points : 91 220
    Points
    91 220
    Billets dans le blog
    20
    Par défaut
    Quelques remarques sur ton code :

    *
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    $id=$_REQUEST['id'];
    $_REQUEST[], c'est pas bien, ton formulaire est en post, utilises $_POST[]

    * Euh... c'est mes yeux ou tu ne fais aucune vérification des données reçues

    *
    Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    function ValidForm() {
      document.form1.submit();
    }
    Que ferait-on sans cette fonction ?

    *
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    <div id="menu">
    <td align="center">
    Ton <td> (ainsi qu'un <tr> après) ne sont pas dans une balise <table>, c'est pas bien

    Bon, j'ai pas été beaucoup plus loin, mais déjà, essaye de corriger cela

    Sinon, pour ton problème, ça me semble simple :
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    $sql="SELECT * FROM client  WHERE id = '".$_REQUEST['id']."'";
    $resultat=mysql_query($sql) or die("Erreur SQL : $sql<br/>".mysql_error());
    $client = mysql_fetch_array ($resultat)	;
    $action=$_REQUEST['action'];
    il semble que tu sélectionnes ton client avant les ajouts dans la base, donc au moment où tu crées $client, il n'existe pas encore

  14. #14
    Membre confirmé
    Homme Profil pro
    Webmaster
    Inscrit en
    Janvier 2007
    Messages
    469
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Biens de consommation

    Informations forums :
    Inscription : Janvier 2007
    Messages : 469
    Points : 525
    Points
    525
    Par défaut
    kogoi place les header en tout début de page.

    Si ton problème persiste divise ton script en 3 pages :

    Formulaire > traitement php > Formulaire bis

  15. #15
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Points : 91 220
    Points
    91 220
    Billets dans le blog
    20
    Par défaut
    Citation Envoyé par Gaetan_
    kogoi place les header en tout début de page.
    Je vois pas en quoi ça réparera le fait qu'il essaye de récupérer des données dans sa base avant qu'elles n'y soient enregistrées

  16. #16
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2009
    Messages : 105
    Points : 56
    Points
    56
    Par défaut formulaire préremplis
    ouh la la ! que d'info!
    merci à tous
    pour bovino

    -ok, je vais essayer le post au lieu du request.(même si ça fonctionne parfaitement comme ça)

    -Les tests sont fait avant l'incrémentation de la bdd : pas de soucis donc.

    -La fonction validform est sensée préremplir toute modif du formulaire initial ( que je vous ai pas montré). cela fonctionne parfaitement sur mon formulaire initial ( en session) mais pas dans mon formulaire de modif. mais chaque chose en son temps ( à moins que vous ayez une idée?)

    le html est effectivement pas très clean : je vais y remédier.

    concernant la requête, tu as effectivement raison
    L'erreur viens très probablement de ça (qu'elle honte de ne pas l'avoir vu!!)
    je modifie sans attendre
    En plus, la requête était placée après la mise à jour et va savoir pourquoi, j'ai inversé.
    concernant gaetan, si le simple déplacement de la requête ne fonctionne pas, j'essayerai ta méthode,
    merci à tous les 2

  17. #17
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2009
    Messages : 105
    Points : 56
    Points
    56
    Par défaut formulaire préremplis
    voila
    pb réglé,
    la requête était mal placée.
    merci à tous

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Rafraichissement Formulaire et replacement
    Par gwen-al dans le forum Général JavaScript
    Réponses: 5
    Dernier message: 31/01/2007, 11h12
  2. rafraichissement formulaire suite modif sous-form
    Par pontoise dans le forum IHM
    Réponses: 5
    Dernier message: 24/11/2006, 23h46
  3. [JAVASCRIPT] Pb rafraichissement formulaire
    Par gwen-al dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 13/11/2006, 09h57
  4. rendre certains champs de formulaire obligatoire
    Par rasleboldesid dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 20/08/2006, 15h54
  5. [MySQL] Champs formulaire obligatoire
    Par pod1978 dans le forum PHP & Base de données
    Réponses: 1
    Dernier message: 19/04/2006, 17h25

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo