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

JavaScript Discussion :

ou est ma variable javascript pour la passer en php ?


Sujet :

JavaScript

  1. #1
    Membre �clair� Avatar de Giantrick
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    300
    D�tails du profil
    Informations personnelles :
    �ge : 52
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 300
    Par d�faut ou est ma variable javascript pour la passer en php ?
    Bonjour,

    Je n'utilise que tr�s peu javascript mais j'avais ce script pour une palette de couleur tr�s simple qui me permet de lire le code hexa de celle-ci.

    Par contre, j'aimerais passer la variable dans mon code PHP pour automatiser le script.

    Je sais que le javascript est cot� client et que php cot� serveur donc il faut recharger une page.

    L� n'est pas le souci pour moi.

    Deux freins se posent � moi :
    - Comment identifier la variable que je dois prendre (il s'agit bien du code hexad�cimal afficher dans le champ ci-dessous.
    Code : S�lectionner tout - Visualiser dans une fen�tre � part
    <input type="text" name="hexvalue" value="#FFFFFF" size="10" onchange="shouldset(this.value)">
    Mais que dois je prendre (shouldset, this.value...) ou autre chose ?

    - De plus, une fois trouver la bonne variable � passer (son nom), j'aimerais bien trouver la bonne syntaxe de ma commande pour passer la variable javascript dans ma variable php.

    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
    <HTML>
    <HEAD>
    <TITLE>Tableau des couleurs</TITLE>
    <script language = "javascript">
    <!--
     
    function shouldset(passon){
    if(document.areas.hexvalue.value.length == 7){setcolor(passon)}
    }
     
    function setcolor(elem){
    document.areas.hexvalue.value=elem
         document.areas.selcolor.style.backgroundColor=elem
    }
     
     
     
    //-->
    </script>
    </HEAD>
     
    <BODY>
    <!--debut generateur couleurs-->
      <form name=areas method=GET action='couleur_hexa.php'>
      <table border="0" width="100" bgcolor="#000000" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="100%"> <table cellSpacing="1" cellPadding="0" width="100" border="0">
              <tr> 
                <td bgColor="#00FF00"><a href="javascript:setcolor('#00FF00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00FF33"><a href="javascript:setcolor('#00FF33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00FF66"><a href="javascript:setcolor('#00FF66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00FF99"><a href="javascript:setcolor('#00FF99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00FFCC"><a href="javascript:setcolor('#00FFCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00FFFF"><a href="javascript:setcolor('#00FFFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00CC00"><a href="javascript:setcolor('#00CC00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00CC66"><a href="javascript:setcolor('#00CC66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00CC66"><a href="javascript:setcolor('#00CC66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00CC99"><a href="javascript:setcolor('#00CC99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00CCCC"><a href="javascript:setcolor('#00CCCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#00CCFF"><a href="javascript:setcolor('#00CCFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#009900"><a href="javascript:setcolor('#009900')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#009933"><a href="javascript:setcolor('#009933')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#009966"><a href="javascript:setcolor('#009966')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#009999"><a href="javascript:setcolor('#009999')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#0099CC"><a href="javascript:setcolor('#0099CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#0099FF"><a href="javascript:setcolor('#0099FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#33FF00"><a href="javascript:setcolor('#33FF00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33FF33"><a href="javascript:setcolor('#33FF33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33FF66"><a href="javascript:setcolor('#33FF66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33FF99"><a href="javascript:setcolor('#33FF99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33FFCC"><a href="javascript:setcolor('#33FFCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33FFFF"><a href="javascript:setcolor('#33FFFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33CC00"><a href="javascript:setcolor('#33CC00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33CC33"><a href="javascript:setcolor('#33CC33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33CC66"><a href="javascript:setcolor('#33CC66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33CC99"><a href="javascript:setcolor('#33CC99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33CCCC"><a href="javascript:setcolor('#33CCCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#33CCFF"><a href="javascript:setcolor('#33CCFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#339900"><a href="javascript:setcolor('#339900')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#339933"><a href="javascript:setcolor('#339933')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#339966"><a href="javascript:setcolor('#339966')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#339999"><a href="javascript:setcolor('#339999')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#3399CC"><a href="javascript:setcolor('#3399CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#3399FF"><a href="javascript:setcolor('#3399FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#66FF00"><a href="javascript:setcolor('#66FF00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66FF33"><a href="javascript:setcolor('#66FF33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66FF66"><a href="javascript:setcolor('#66FF66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66FF99"><a href="javascript:setcolor('#66FF99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66FFCC"><a href="javascript:setcolor('#66FFCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66FFFF"><a href="javascript:setcolor('#66FFFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66CC00"><a href="javascript:setcolor('#66CC00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66CC33"><a href="javascript:setcolor('#66CC33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66CC66"><a href="javascript:setcolor('#66CC66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66CC99"><a href="javascript:setcolor('#66CC99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66CCCC"><a href="javascript:setcolor('#66CCCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#66CCFF"><a href="javascript:setcolor('#66CCFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#669900"><a href="javascript:setcolor('#669900')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#669933"><a href="javascript:setcolor('#669933')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#669966"><a href="javascript:setcolor('#669966')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#669999"><a href="javascript:setcolor('#669999')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#6699CC"><a href="javascript:setcolor('#6699CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#6699FF"><a href="javascript:setcolor('#6699FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#99FF00"><a href="javascript:setcolor('#99FF00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99FF33"><a href="javascript:setcolor('#99FF33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99FF66"><a href="javascript:setcolor('#99FF66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99FF99"><a href="javascript:setcolor('#99FF99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99FFCC"><a href="javascript:setcolor('#99FFCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99FFFF"><a href="javascript:setcolor('#99FFFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99CC00"><a href="javascript:setcolor('#99CC00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99CC33"><a href="javascript:setcolor('#99CC33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99CC66"><a href="javascript:setcolor('#99CC66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99CC99"><a href="javascript:setcolor('#99CC99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99CCCC"><a href="javascript:setcolor('#99CCCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#99CCFF"><a href="javascript:setcolor('#99CCFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#999900"><a href="javascript:setcolor('#999900')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#999933"><a href="javascript:setcolor('#999933')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#999966"><a href="javascript:setcolor('#999966')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#999999"><a href="javascript:setcolor('#999999')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#9999CC"><a href="javascript:setcolor('#9999CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#9999FF"><a href="javascript:setcolor('#9999FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#CCFF00"><a href="javascript:setcolor('#CCFF00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCFF33"><a href="javascript:setcolor('#CCFF33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCFF66"><a href="javascript:setcolor('#CCFF66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCFF99"><a href="javascript:setcolor('#CCFF99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCFFCC"><a href="javascript:setcolor('#CCFFCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCFFFF"><a href="javascript:setcolor('#CCFFFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCCC00"><a href="javascript:setcolor('#CCCC00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCCC33"><a href="javascript:setcolor('#CCCC33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCCC66"><a href="javascript:setcolor('#CCCC66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCCC99"><a href="javascript:setcolor('#CCCC99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCCCCC"><a href="javascript:setcolor('#CCCCCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CCCCFF"><a href="javascript:setcolor('#CCCCFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC9900"><a href="javascript:setcolor('#CC9900')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC9933"><a href="javascript:setcolor('#CC9933')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC9966"><a href="javascript:setcolor('#CC9966')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC9999"><a href="javascript:setcolor('#CC9999')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC99CC"><a href="javascript:setcolor('#CC99CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC99FF"><a href="javascript:setcolor('#CC99FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#FFFF00"><a href="javascript:setcolor('#FFFF00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFFF33"><a href="javascript:setcolor('#FFFF33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFFF66"><a href="javascript:setcolor('#FFFF66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFFF99"><a href="javascript:setcolor('#FFFF99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFFFCC"><a href="javascript:setcolor('#FFFFCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFFFFF"><a href="javascript:setcolor('#FFFFFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFCC00"><a href="javascript:setcolor('#FFCC00')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFCC33"><a href="javascript:setcolor('#FFCC33')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFCC66"><a href="javascript:setcolor('#FFCC66')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFCC99"><a href="javascript:setcolor('#FFCC99')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFCCCC"><a href="javascript:setcolor('#FFCCCC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FFCCFF"><a href="javascript:setcolor('#FFCCFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF9900"><a href="javascript:setcolor('#FF9900')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF9933"><a href="javascript:setcolor('#FF9933')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF9966"><a href="javascript:setcolor('#FF9966')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF9999"><a href="javascript:setcolor('#FF9999')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF99CC"><a href="javascript:setcolor('#FF99CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF99FF"><a href="javascript:setcolor('#FF99FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#006600"><a href="javascript:setcolor('#006600')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#006633"><a href="javascript:setcolor('#006633')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#006666"><a href="javascript:setcolor('#006666')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#006699"><a href="javascript:setcolor('#006699')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#0066CC"><a href="javascript:setcolor('#0066CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#0066FF"><a href="javascript:setcolor('#0066FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#003300"><a href="javascript:setcolor('#003300')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#003333"><a href="javascript:setcolor('#003333')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#003366"><a href="javascript:setcolor('#003366')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#003399"><a href="javascript:setcolor('#003399')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#0033CC"><a href="javascript:setcolor('#0033CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#0033FF"><a href="javascript:setcolor('#0033FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#000000"><a href="javascript:setcolor('#000000')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#000033"><a href="javascript:setcolor('#000033')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#000066"><a href="javascript:setcolor('#000066')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#000099"><a href="javascript:setcolor('#000099')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#0000CC"><a href="javascript:setcolor('#0000CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#0000FF"><a href="javascript:setcolor('#0000FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#336600"><a href="javascript:setcolor('#336600')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#336633"><a href="javascript:setcolor('#336633')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#336666"><a href="javascript:setcolor('#336666')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#336699"><a href="javascript:setcolor('#336699')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#3366CC"><a href="javascript:setcolor('#3366CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#3366FF"><a href="javascript:setcolor('#3366FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#333300"><a href="javascript:setcolor('#333300')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#333333"><a href="javascript:setcolor('#333333')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#333366"><a href="javascript:setcolor('#333366')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#333399"><a href="javascript:setcolor('#333399')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#3333CC"><a href="javascript:setcolor('#3333CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#3333FF"><a href="javascript:setcolor('#3333FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#330000"><a href="javascript:setcolor('#330000')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#330033"><a href="javascript:setcolor('#330033')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#330066"><a href="javascript:setcolor('#330066')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#330099"><a href="javascript:setcolor('#330099')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#3300CC"><a href="javascript:setcolor('#3300CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#3300FF"><a href="javascript:setcolor('#3300FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#666600"><a href="javascript:setcolor('#666600')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#666633"><a href="javascript:setcolor('#666633')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#666666"><a href="javascript:setcolor('#666666')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#666699"><a href="javascript:setcolor('#666699')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#6666CC"><a href="javascript:setcolor('#6666CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#6666FF"><a href="javascript:setcolor('#6666FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#663300"><a href="javascript:setcolor('#663300')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#663333"><a href="javascript:setcolor('#663333')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#663366"><a href="javascript:setcolor('#663366')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#663399"><a href="javascript:setcolor('#663399')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#6633CC"><a href="javascript:setcolor('#6633CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#6633FF"><a href="javascript:setcolor('#6633FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#660000"><a href="javascript:setcolor('#660000')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#660033"><a href="javascript:setcolor('#660033')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#660066"><a href="javascript:setcolor('#660066')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#660099"><a href="javascript:setcolor('#660099')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#6600CC"><a href="javascript:setcolor('#6600CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#6600FF"><a href="javascript:setcolor('#6600FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#996600"><a href="javascript:setcolor('#996600')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#996633"><a href="javascript:setcolor('#996633')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#996666"><a href="javascript:setcolor('#996666')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#996699"><a href="javascript:setcolor('#996699')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#9966CC"><a href="javascript:setcolor('#9966CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#9966FF"><a href="javascript:setcolor('#9966FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#993300"><a href="javascript:setcolor('#993300')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#993333"><a href="javascript:setcolor('#993333')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#993366"><a href="javascript:setcolor('#993366')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#993399"><a href="javascript:setcolor('#993399')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#9933CC"><a href="javascript:setcolor('#9933CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#9933FF"><a href="javascript:setcolor('#9933FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#990000"><a href="javascript:setcolor('#990000')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#990033"><a href="javascript:setcolor('#990033')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#990066"><a href="javascript:setcolor('#990066')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#990099"><a href="javascript:setcolor('#990099')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#9900CC"><a href="javascript:setcolor('#9900CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#9900FF"><a href="javascript:setcolor('#9900FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#CC6600"><a href="javascript:setcolor('#CC6600')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC6633"><a href="javascript:setcolor('#CC6633')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC6666"><a href="javascript:setcolor('#CC6666')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC6699"><a href="javascript:setcolor('#CC6699')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC66CC"><a href="javascript:setcolor('#CC66CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC66FF"><a href="javascript:setcolor('#CC66FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC3300"><a href="javascript:setcolor('#CC3300')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC3333"><a href="javascript:setcolor('#CC3333')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC3366"><a href="javascript:setcolor('#CC3366')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC3399"><a href="javascript:setcolor('#CC3399')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC33CC"><a href="javascript:setcolor('#CC33CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC33FF"><a href="javascript:setcolor('#CC33FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC0000"><a href="javascript:setcolor('#CC0000')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC0033"><a href="javascript:setcolor('#CC0033')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC0066"><a href="javascript:setcolor('#CC0066')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC0099"><a href="javascript:setcolor('#CC0099')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC00CC"><a href="javascript:setcolor('#CC00CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#CC00FF"><a href="javascript:setcolor('#CC00FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
              <tr> 
                <td bgColor="#FF6600"><a href="javascript:setcolor('#FF6600')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF6633"><a href="javascript:setcolor('#FF6633')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF6666"><a href="javascript:setcolor('#FF6666')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF6699"><a href="javascript:setcolor('#FF6699')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF66CC"><a href="javascript:setcolor('#FF66CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF66FF"><a href="javascript:setcolor('#FF66FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF3300"><a href="javascript:setcolor('#FF3300')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF3333"><a href="javascript:setcolor('#FF3333')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF3366"><a href="javascript:setcolor('#FF3366')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF3399"><a href="javascript:setcolor('#FF3399')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF33CC"><a href="javascript:setcolor('#FF33CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF33FF"><a href="javascript:setcolor('#FF33FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF0000"><a href="javascript:setcolor('#FF0000')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF0033"><a href="javascript:setcolor('#FF0033')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF0066"><a href="javascript:setcolor('#FF0066')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF0099"><a href="javascript:setcolor('#FF0099')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF00CC"><a href="javascript:setcolor('#FF00CC')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                <td bgColor="#FF00FF"><a href="javascript:setcolor('#FF00FF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table border="0" width="290" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="100%"><img border="0" src="11dot.gif" width="50" height="10"></td>
        </tr>
        <tr> 
          <td width="100%"> <table border="0" width="100" cellspacing="0" cellpadding="0" bgcolor="#000000">
              <tr> 
                <td width="100%"> <table border="0" width="100%" cellspacing="1" cellpadding="0">
                    <tr> 
                      <td bgcolor="#FFFFFF"><a href="javascript:setcolor('#FFFFFF')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                      <td bgcolor="#DDDDDD"><a href="javascript:setcolor('#DDDDDD')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                      <td bgcolor="#C0C0C0"><a href="javascript:setcolor('#C0C0C0')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                      <td bgcolor="#969696"><a href="javascript:setcolor('#969696')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                      <td bgcolor="#808080"><a href="javascript:setcolor('#808080')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                      <td bgcolor="#646464"><a href="javascript:setcolor('#646464')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                      <td bgcolor="#4B4B4B"><a href="javascript:setcolor('#4B4B4B')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                      <td bgcolor="#242424"><a href="javascript:setcolor('#242424')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                      <td bgcolor="#000000"><a href="javascript:setcolor('#000000')"><img border="0" src="11dot.gif" width="15" height="15"></a></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
     
     
     
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="100%"><img border="0" src="11dot.gif" width="50" height="10"></td>
        </tr>
        <tr> 
          <td width="100%"><input type="text" name="hexvalue" value="#FFFFFF" size="10" onchange="shouldset(this.value)"> 
            <img border="0" src="egal.gif" width="10" height="10"> <input type="text" name="selcolor" size="24" onfocus="this.blur()"></td>
        </tr>
      </table>
     
     
    </form>  
    <!--fin generateur couleurs-->
        </TR>
    </TABLE>
    <!--fin tableau couleurs-->
    </BODY>
    </HTML>
    Merci beaucoup de votre soutiens et patience.

    A tr�s vite j'esp�re pour une r�ponse.

  2. #2
    Membre confirm�
    Inscrit en
    Janvier 2010
    Messages
    34
    D�tails du profil
    Informations forums :
    Inscription : Janvier 2010
    Messages : 34
    Par d�faut
    J'ai peur de ne pas avoir tout compris ... mais dans l'�tat si tu valide l'envoi de ton formulaire dna sla page couleur_hexa.php tu vas te retrouver avec la variable $_GET['hexvalue'] contenant ta valeur recherch�e !... non ?

  3. #3
    Membre �clair� Avatar de Giantrick
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    300
    D�tails du profil
    Informations personnelles :
    �ge : 52
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 300
    Par d�faut
    Citation Envoy� par nours312 Voir le message
    J'ai peur de ne pas avoir tout compris ... mais dans l'�tat si tu valide l'envoi de ton formulaire dna sla page couleur_hexa.php tu vas te retrouver avec la variable $_GET['hexvalue'] contenant ta valeur recherch�e !... non ?
    Effectivement c'est tout b�te, mais parfois, je me complique la vie tout seul...

    Il est vrai que le simple fait de recharger la page en passant un GET dans un form me r�cup�re la variable issue du javascript.

    C'est bon donc du coup j'ai bien r�cup�r� automatiquement avec le $_GET['hexvalue'] la variable apr�s rechargement de la page.

    Merci � toi....

+ R�pondre � la discussion
Cette discussion est r�solue.

Discussions similaires

  1. Variable Javascript pour marqueur
    Par bouuuh dans le forum G�n�ral JavaScript
    R�ponses: 8
    Dernier message: 03/06/2014, 11h13
  2. recup variable Javascript pour Formulaire php
    Par Nicolas94 dans le forum G�n�ral JavaScript
    R�ponses: 8
    Dernier message: 21/10/2009, 22h23
  3. R�ponses: 0
    Dernier message: 20/10/2009, 23h35
  4. R�ponses: 3
    Dernier message: 16/09/2008, 11h31
  5. R�ponses: 17
    Dernier message: 06/09/2006, 13h37

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