J'ai toujours pas capté
En fait, tu veux dire que tes variables $maxL et $minL ne sont pas interprétées dans ton HTML ?
J'ai toujours pas capté
En fait, tu veux dire que tes variables $maxL et $minL ne sont pas interprétées dans ton HTML ?
Je me doute....
En fait mon autre problème est quand modifiant la date en 3 champs, j'ai effacé un paramètre.
Voici la définition exacte:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 $jour = new Decimal ( "jour" , MUST , UINT , 2 , 2 ) , $mois = new Decimal ( "mois" , MUST , UINT , 2 , 2 ) , $annee = new Decimal ( "annee" , MUST , UINT , 4 , 4 ) ,
UINT pour unsigned Integer.... et maintenant mon formulaire est correctement interprèté mais la taille à l'écran reste un (petit) problème.
Rien de changer dans le display... que ce soit pour les minL et maxL, la taille à l'écran est pratiquement double de ce qu'elle devrait être....
Pige pas....
Merci à vous tous....
Que donne la source HTML interprétée au niveau du size et maxlength ?
Je n'ai pas vu d'anomalie au niveau de la source
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 <tr> <td align="left" class="form_lbl">Phone</td> <td colspan="3" align="left"> <SPAN class="form_fld"><input name="phone" type="text" size="10" value="0467694641"/></SPAN> </td> <td> </td> <td colspan="3"> </td> <td> </td> <td> </td> </tr> <tr> <td align="left" width="60" class="form_lbl">Password</td> <td width="92" align="left"> <SPAN class="form_fld"><input name="pass" type="password" size="8" value="ddddddd"/></SPAN> <td colspan="2"> </td> <td align="left" class="form_lbl">Confirmation</td> <td colspan="3" align="left"> <SPAN class="form_fld"><input name="cpass" type="password" size="8" value="ddddddd"/></SPAN> </td> <td> </td> <td> </td> </tr> <tr> <td align="left" class="form_lbl">N°</td> <td align="left"> <SPAN class="form_fld"><input name="numero" type="text" size="1" maxlength="5" value="1693"/></SPAN> </td> <td align="left" class="form_lbl" width="38">Bte</td> <td width="41" align="left"> <SPAN class="form_fld"><input name="boite" type="text" size="5" value=""/></SPAN> </td> <td align="left" class="form_lbl">Rue/Avenue</td> <td colspan="3" align="left"> <SPAN class="form_fld"><input name="voie" type="text" size="30" value="fvddfsdfsfdsf"/></SPAN> </td> <td> </td> <td> </td> </tr> <tr> <td align="left" class="form_lbl">Zip</td> <td colspan="3" align="left"> <SPAN class="form_fld"><input name="zip" type="text" size="5" maxlength="5" value="30120"/></SPAN> <td align="left" class="form_lbl">Date Naissance</td> <td width="43" align="center"> <SPAN class="form_fld"><input name="jour" type="text" size="2" maxlength="2" value="08"/></SPAN> </td> <td width="36" align="center"> <SPAN class="form_fld"><input name="mois" type="text" size="2" maxlength="2" value="07"/></SPAN></td> <td width="30" align="center"> <SPAN class="form_fld"><input name="annee" type="text" size="4" maxlength="4" value="1954"/></SPAN> </td> <td> </td> <td> </td> </tr>
Je viens de la regarder de + près en mettant les zones en gras et cela me semble OK et toi ?
Merci
Je te mets en pièce attaché un jpg de mon écran, tu comprendras mieux, je pense !
Puis je pars une bonne heure environ.
@+
Ah...ok !
Tu entends par taille la taille de ton champ (largeur) ? Si c'est le cas, faut voir du côté du CSS pas des attributs HTML. Au pire, simuler un champ par un div avec des padding-{left | right} pour qu'ils soient uniformes
Olivier,
Pour élimner CSS comme étant la cause de mon souci, j'ai oté la balise <SPAN dans le display, comme ceci:
Ce qui me donne ceci en HTML:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 /** * display * ======= */ function display() { //echo '<SPAN class="form_fld">' ; echo '<input name="'.$this->name.'" type="text" size="'.$this->minL.'" maxlength="'.$this->maxL.'" value="'. (isset($_POST[$this->name]) ? $_POST[$this->name] : '') .'"/>' ; //echo '</SPAN>' ; }
Et pas de changement à l'écran.....
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 <tr> <td align="left" class="form_lbl">Zip</td> <td colspan="3" align="left"> <input name="zip" type="text" size="5" maxlength="5" value="30120"/> <td align="left" class="form_lbl">Date Naissance</td> <td width="43" align="center"> <input name="jour" type="text" size="2" maxlength="2" value="08"/> </td> <td width="36" align="center"> <input name="mois" type="text" size="2" maxlength="2" value="07"/></td> <td width="30" align="center"> <input name="annee" type="text" size="4" maxlength="4" value="1954"/> </td> <td> </td> <td> </td> </tr>
Là, je ne vois plus.....
Sauf que dans les faits, si tu codes un input de type "text" ou "password" avec un size=4 et bien tu peux voir plus de 4 caractères quand mêmeDefinition and Usage
The size attribute specifies the width of an input field.
For <input type="text"> and <input type="password">, the size attribute defines the number of characters that should be visible. For all other input types, size defines the width of the input field in pixels.
En gros, c'est un peu de la foutaise quoi
Je sais pas si ca répond à ta question mais y'a d'autres infos ici
Olivier,
Juste un petit msg... je n'ai pu travailler ces derniers jours et reprendrais demain sans doute.
J'ai mis le résultat de mon travail sur la toile que tu peux visualiser sur
www.jecrapahute.fr
Je crois que nous aurons + simple ainsi...
merci d'avance et @+
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager