créer un site


problème d'incrémentation

Poster un nouveau sujet sur divers   Répondre au sujet à divers:problème d'incrémentation    Accueil Forum -> divers
Voir le sujet précédent :: Voir le sujet suivant  
Auteur Message
cognin
frontpage mioche
frontpage mioche
Messageproblème d'incrémentation , Posté le: 18-12-2004 16:58

Question Embarassed
Bonjour à tous,

J'ai un problème avec un formulaire qui doit servir aux achats en ligne entre autres.
Pour activer certaines fonctions les champs référence, prix et quantité doivent être incrémentés afin de porter chacun un nom différent. Il y aura env. 300 de chaque et je peut donc pas le faire à la main. Ce formulaire n'utilisera pas de BD pour le moment. Voici une partie du code :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form action="" enctype="text/plain" method="post" name="form1" onSubmit="return checkrequired(this)">
<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="25%"><table width="100%" border="1" cellpadding="0" cellspacing="0" >

<tr>

<td height="40" colspan="5"><div align="center"><p><a href="">Puff Metall</a></p></div></td>

</tr>

<tr>

<td height="160" colspan="5" class="image"><a href="javascript:PopupImage('../_gif/64585.jpg')">
<img src="../../../../../Documents%20and%20Settings/Linda.LILI.001/Mes%20documents/Mes%20sites%20Web/_gif/64585.jpg" width="134" height="122" class="image" style="border-width: 0"></a></td>
</tr>

<tr>
<td height="12" nowrap class="dim">Article n°</td>
<td nowrap class="dim">Size in cm</td>
<td nowrap class="dim">Size in inch</td>
<td nowrap class="prixtitre">Price</td>
<td nowrap class="qte">Qty</td>
</tr>

<tr>
<td height="12" nowrap><input name="ref" type="text" class="ref" size="3" maxlength="9" readonly=""></td>
<td nowrap class="dim">&</td>
<td nowrap class="dim">&</td>
<td nowrap><input name="prix" type="text" class="prix" size="4" maxlength="6" readonly></td>
<td nowrap> <input name="qte" type="text" class="qte" tabindex="1" size="2" maxlength="4" value="" readonly=""></td>
</tr>

<tr>
<td height="12" nowrap><input name="ref" type="text" class="ref" value="MGJ 64585" size="3" maxlength="9" readonly=""></td>
<td nowrap class="dim">17.2 x 19 cm</td>
<td nowrap class="dim">6¾& x 7½&</td>
<td nowrap><input name="prix" type="text" class="prix" value="1.55 &" size="3" maxlength="6" readonly></td>
<td nowrap><input name="qte" type="text" class="qte" tabindex="2" value="" size="2" maxlength="4" ></td>
</tr>

<tr>
<td height="12" nowrap><input name="ref" type="text" class="ref" value="MGF 64585" size="3" maxlength="9" readonly=""></td>
<td nowrap class="dim">12.8 x 14 cm</td>
<td nowrap class="dim">5¼" x 5¾"</td>
<td nowrap><input name="prix" type="text" class="prix" value="1.39 &" size="3" maxlength="6" readonly></td>
<td nowrap><input name="qte" type="text" class="qte" tabindex="3" value="" size="2" maxlength="4" ></td>
</tr>

<tr>
<td height="12" nowrap><input name="ref" type="text" class="ref" value="MGD 64585" size="3" maxlength="9" readonly=""></td>
<td nowrap class="dim">8.2 x 9 cm</td>
<td nowrap class="dim">3¼" x 3¾"</td>
<td nowrap><input name="prix" type="text" class="prix" value="0.95 &" size="3" maxlength="6" readonly></td>
<td nowrap><input name="qte" type="text" class="qte" tabindex="4" value="" size="2" maxlength="4" ></td>
</tr>

</table></td>
</form>

</body>
</html>
[/quote]

Je serais reconnaissante de toute aide.
Merci à Tous
iowa
php mioche
php mioche
Messageproblème d'incrémentation , Posté le: 22-01-2005 19:54

c'est plutot en javascript et pas en ds diver

je comprend pas ce que tu veut
cognin
frontpage mioche
frontpage mioche
Messageproblème d'incrémentation , Posté le: 23-01-2005 11:02

Bonjour

Merci de ta réponse mais entretemps j'ai tout refait en php avec une bdd. Vois plutôt ma dernière question concernant la mise en page des tableaux.

Cordialement Smile
iowa
php mioche
php mioche
Messageproblème d'incrémentation , Posté le: 23-01-2005 22:01

ok je vais voir
Montrer les messages depuis:   
Poster un nouveau sujet sur divers   Répondre au sujet à divers:problème d'incrémentation    Accueil Forum -> divers Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

 
Sauter vers:  
S'enregistrerS'enregistrer
ProfilProfil
Se connecter pour vérifier ses messages privésSe connecter pour vérifier ses messages privés
RechercherRechercher
Liste des MembresMembres
FAQFAQ
ConnexionConnexion 


© Mentions Légales