Bonjour à tous.
Alors la je crois que je vais surement me faire gronder, mais je trouve ça très étrange...
Juste ça : pourquoi avec ce script tt simple, mes couleurs ne s'affichent que sur la moitié des champs ?
Le principal est ça : style='border-color:red'
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 <?php $afficher_le_formulaire = "yes"; $soc = $_POST['societe']; if ($soc != "") // Si la zone est remplie { } if ($soc == "") // Si une des zones est vide { $afficher_le_formulaire = "yes"; ?> <form id="form1" name="form1" method="post" action="<?php $PHP_SELF;?>"> <table width="505" border="0" align="center"> <tr> <td colspan="2" align="left" valign="bottom"><span class="Style9">Société*</span></td> <td align="left" valign="bottom"><input name="societe" type="text" id="societe" size="30" maxlength="100" style="border-width:1px" <?php if(isset($_POST['societe'])&&($_POST['societe']=="")) echo"style='border-color:red'"; else echo"style='border-color:blue'";?> value="<?php echo $soc?>" /> <?php if(isset($_POST['societe'])&&($_POST['societe']==""))echo"<font color=ff0000>*</font>";?></td> </tr> <tr> <td colspan="2" align="left" valign="bottom"><div align="right"> <input type="reset" name="Submit" value="Réinitialiser" /> </div></td> <td align="left" valign="bottom"><div align="left"> <input type="submit" name="Submit2" value="Valider" /> </div></td> </tr> <tr> <td width="94" align="left" valign="bottom"> </td> <td width="181" align="left" valign="bottom"> </td> <td align="left" valign="middle"><div align="right" class="Style25">*champs obligatoires </div></td> </tr> </table> </form> <?php } ?>
Je ne sais pas comment le rendre totalement rouge, pourtant le script border-width s'applique bien sur tt le champ.
J'ai posté dans le forum html, j'espere ne pas m'etre trompé.
Merci d'avance pour ceux qui savent.![]()
Partager