Base des données du site
Fermé
mouradbatchen
Messages postés
29
Date d'inscription
mercredi 13 mai 2009
Statut
Membre
Dernière intervention
26 mai 2009
-
14 mai 2009 à 09:57
cotta Messages postés 294 Date d'inscription mercredi 5 novembre 2008 Statut Membre Dernière intervention 3 mai 2010 - 21 mai 2009 à 16:57
cotta Messages postés 294 Date d'inscription mercredi 5 novembre 2008 Statut Membre Dernière intervention 3 mai 2010 - 21 mai 2009 à 16:57
A voir également:
- Base des données du site
- Exemple base de données access à télécharger gratuit - Forum Access
- Votre colis est dans le site de livraison qui dessert votre adresse. nous le préparons pour le mettre en livraison. ✓ - Forum Consommation et internet
- Comment savoir si un site est fiable - Guide
- Il est en cours de transport vers votre site de livraison ✓ - Forum Consommation et internet
- Site de revente - Guide
24 réponses
ThEBiShOp
Messages postés
8318
Date d'inscription
jeudi 22 mars 2007
Statut
Contributeur
Dernière intervention
8 février 2021
1 600
14 mai 2009 à 10:13
14 mai 2009 à 10:13
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 10:16
14 mai 2009 à 10:16
Bonjour,
c'est quel genre de site?
pouvez-vous étre plus précis SVP.. car ça differt de faire une BDD d'un site à un autre..
c'est quel genre de site?
pouvez-vous étre plus précis SVP.. car ça differt de faire une BDD d'un site à un autre..
mouradbatchen
Messages postés
29
Date d'inscription
mercredi 13 mai 2009
Statut
Membre
Dernière intervention
26 mai 2009
14 mai 2009 à 10:26
14 mai 2009 à 10:26
salut
merci pour votre réponse
mon site concerne la vente en ligne des ouvrages et revues d'une sociétés, aussi l'inscription en ligne aux séminaires.
à savoir que je construit mes pages à travers dreamweavaer qui met le code directement
mon problème c'est comment faire la base des données de formulaire de vente ou d'inscription et son exécution.
voici le code de l'un des formulaires
<!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>Document sans titre</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:173px;
top:140px;
width:598px;
height:501px;
z-index:1;
}
#Layer2 {
position:absolute;
left:346px;
top:56px;
width:294px;
height:24px;
z-index:2;
}
.Style1 {
font-size: 24px;
font-weight: bold;
}
#Layer3 {
position:absolute;
left:198px;
top:219px;
width:51px;
height:25px;
z-index:3;
}
#Layer4 {
position:absolute;
left:282px;
top:217px;
width:149px;
height:26px;
z-index:4;
}
#Layer5 {
position:absolute;
left:196px;
top:257px;
width:66px;
height:23px;
z-index:5;
}
#Layer6 {
position:absolute;
left:282px;
top:255px;
width:145px;
height:25px;
z-index:6;
}
#Layer7 {
position:absolute;
left:197px;
top:302px;
width:66px;
height:24px;
z-index:7;
}
#Layer8 {
position:absolute;
left:284px;
top:301px;
width:147px;
height:27px;
z-index:8;
}
#Layer9 {
position:absolute;
left:199px;
top:166px;
width:318px;
height:34px;
z-index:9;
}
.Style2 {
color: #006600;
font-weight: bold;
}
#Layer10 {
position:absolute;
left:198px;
top:355px;
width:149px;
height:20px;
z-index:10;
}
#Layer11 {
position:absolute;
left:201px;
top:396px;
width:32px;
height:20px;
z-index:11;
}
#Layer12 {
position:absolute;
left:236px;
top:396px;
width:22px;
height:20px;
z-index:12;
}
#Layer13 {
position:absolute;
left:282px;
top:395px;
width:56px;
height:20px;
z-index:13;
}
#Layer14 {
position:absolute;
left:195px;
top:372px;
width:85px;
height:110px;
z-index:14;
}
#Layer15 {
position:absolute;
left:198px;
top:511px;
width:147px;
height:24px;
z-index:15;
}
#Layer16 {
position:absolute;
left:381px;
top:510px;
width:115px;
height:23px;
z-index:16;
}
#Layer17 {
position:absolute;
left:200px;
top:554px;
width:145px;
height:25px;
z-index:17;
}
#Layer18 {
position:absolute;
left:382px;
top:556px;
width:119px;
height:20px;
z-index:18;
}
#Layer19 {
position:absolute;
left:409px;
top:643px;
width:64px;
height:26px;
z-index:19;
}
#Layer20 {
position:absolute;
left:500px;
top:642px;
width:64px;
height:26px;
z-index:20;
}
-->
</style>
</head>
<body>
<div id="Layer1">
<table height="530" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="614" height="406" valign="top"><p align="left"> </p>
</td>
</tr>
</table>
</div>
<div id="Layer2">
<div align="center" class="Style1">Demande d'Inscription </div>
</div>
<div id="Layer3"><strong>Nom: </strong></div>
<div id="Layer4">
<form id="form1" name="form1" method="post" action="Inscriptions Formations.php">
<label>
<input type="text" name="textfield" />
</label>
</form>
</div>
<div id="Layer5"><strong>Prénom : </strong></div>
<div id="Layer6">
<form id="form2" name="form2" method="post" action="Inscriptions Formations.php">
<label>
<input type="text" name="textfield2" />
</label>
</form>
</div>
<div id="Layer7"><strong>E-mail : </strong></div>
<div id="Layer8">
<form id="form3" name="form3" method="post" action="Inscriptions Formations.php">
<label>
<input type="text" name="textfield3" />
</label>
</form>
</div>
<div class="Style2" id="Layer9">1. Informations Personnelle : </div>
<div class="Style2" id="Layer10">2. Niveau d'études </div>
<div id="Layer14">
<div id="layer">
<form id="form5" name="form5" method="post" action="Inscriptions Formations.php">
<p>
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
BAC</label>
<br />
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
BAC+ 2</label>
<br />
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
BAC+ 4</label>
<br />
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
BAC+ 5</label>
<br />
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
PLUS</label>
<br />
</p>
<label></label>
</form>
</div>
</div>
<div id="Layer15"><strong>Types de Diplome: </strong></div>
<div id="Layer16">
<form id="form4" name="form4" method="post" action="Inscriptions Formations.php">
<label>
<select name="select">
<option>Scientifique</option>
<option>Economique</option>
<option>Littérale</option>
<option>Autres</option>
</select>
</label>
</form>
</div>
<div id="Layer17"><strong>Formation souhaité : </strong></div>
<div id="Layer18">
<label>
<select name="select2">
<option>Formation 1</option>
<option>Formation 2</option>
<option>Formation 3</option>
</select>
</label>
</div>
<div id="Layer19">
<form id="form6" name="form6" method="post" action="Inscriptions Formations.php">
<label>
<input type="submit" name="Submit" value="S'inscrire" />
</label>
</form>
</div>
<div id="Layer20">
<form id="form7" name="form7" method="post" action="Formations.php">
<label>
<a href="Formations.php"><input type="submit" name="Submit2" value="Annuler" />
</label>
</form>
</div>
<table width="877" height="503" border="1">
<tr>
<td width="867"><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table>
</body>
</html>
svp aider car le dépot de mon projet c cette mois et il me reste seulement ce problème
et merci
merci pour votre réponse
mon site concerne la vente en ligne des ouvrages et revues d'une sociétés, aussi l'inscription en ligne aux séminaires.
à savoir que je construit mes pages à travers dreamweavaer qui met le code directement
mon problème c'est comment faire la base des données de formulaire de vente ou d'inscription et son exécution.
voici le code de l'un des formulaires
<!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>Document sans titre</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:173px;
top:140px;
width:598px;
height:501px;
z-index:1;
}
#Layer2 {
position:absolute;
left:346px;
top:56px;
width:294px;
height:24px;
z-index:2;
}
.Style1 {
font-size: 24px;
font-weight: bold;
}
#Layer3 {
position:absolute;
left:198px;
top:219px;
width:51px;
height:25px;
z-index:3;
}
#Layer4 {
position:absolute;
left:282px;
top:217px;
width:149px;
height:26px;
z-index:4;
}
#Layer5 {
position:absolute;
left:196px;
top:257px;
width:66px;
height:23px;
z-index:5;
}
#Layer6 {
position:absolute;
left:282px;
top:255px;
width:145px;
height:25px;
z-index:6;
}
#Layer7 {
position:absolute;
left:197px;
top:302px;
width:66px;
height:24px;
z-index:7;
}
#Layer8 {
position:absolute;
left:284px;
top:301px;
width:147px;
height:27px;
z-index:8;
}
#Layer9 {
position:absolute;
left:199px;
top:166px;
width:318px;
height:34px;
z-index:9;
}
.Style2 {
color: #006600;
font-weight: bold;
}
#Layer10 {
position:absolute;
left:198px;
top:355px;
width:149px;
height:20px;
z-index:10;
}
#Layer11 {
position:absolute;
left:201px;
top:396px;
width:32px;
height:20px;
z-index:11;
}
#Layer12 {
position:absolute;
left:236px;
top:396px;
width:22px;
height:20px;
z-index:12;
}
#Layer13 {
position:absolute;
left:282px;
top:395px;
width:56px;
height:20px;
z-index:13;
}
#Layer14 {
position:absolute;
left:195px;
top:372px;
width:85px;
height:110px;
z-index:14;
}
#Layer15 {
position:absolute;
left:198px;
top:511px;
width:147px;
height:24px;
z-index:15;
}
#Layer16 {
position:absolute;
left:381px;
top:510px;
width:115px;
height:23px;
z-index:16;
}
#Layer17 {
position:absolute;
left:200px;
top:554px;
width:145px;
height:25px;
z-index:17;
}
#Layer18 {
position:absolute;
left:382px;
top:556px;
width:119px;
height:20px;
z-index:18;
}
#Layer19 {
position:absolute;
left:409px;
top:643px;
width:64px;
height:26px;
z-index:19;
}
#Layer20 {
position:absolute;
left:500px;
top:642px;
width:64px;
height:26px;
z-index:20;
}
-->
</style>
</head>
<body>
<div id="Layer1">
<table height="530" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="614" height="406" valign="top"><p align="left"> </p>
</td>
</tr>
</table>
</div>
<div id="Layer2">
<div align="center" class="Style1">Demande d'Inscription </div>
</div>
<div id="Layer3"><strong>Nom: </strong></div>
<div id="Layer4">
<form id="form1" name="form1" method="post" action="Inscriptions Formations.php">
<label>
<input type="text" name="textfield" />
</label>
</form>
</div>
<div id="Layer5"><strong>Prénom : </strong></div>
<div id="Layer6">
<form id="form2" name="form2" method="post" action="Inscriptions Formations.php">
<label>
<input type="text" name="textfield2" />
</label>
</form>
</div>
<div id="Layer7"><strong>E-mail : </strong></div>
<div id="Layer8">
<form id="form3" name="form3" method="post" action="Inscriptions Formations.php">
<label>
<input type="text" name="textfield3" />
</label>
</form>
</div>
<div class="Style2" id="Layer9">1. Informations Personnelle : </div>
<div class="Style2" id="Layer10">2. Niveau d'études </div>
<div id="Layer14">
<div id="layer">
<form id="form5" name="form5" method="post" action="Inscriptions Formations.php">
<p>
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
BAC</label>
<br />
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
BAC+ 2</label>
<br />
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
BAC+ 4</label>
<br />
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
BAC+ 5</label>
<br />
<label>
<input type="radio" name="Groupe de boutons radio1" value="bouton radio" />
PLUS</label>
<br />
</p>
<label></label>
</form>
</div>
</div>
<div id="Layer15"><strong>Types de Diplome: </strong></div>
<div id="Layer16">
<form id="form4" name="form4" method="post" action="Inscriptions Formations.php">
<label>
<select name="select">
<option>Scientifique</option>
<option>Economique</option>
<option>Littérale</option>
<option>Autres</option>
</select>
</label>
</form>
</div>
<div id="Layer17"><strong>Formation souhaité : </strong></div>
<div id="Layer18">
<label>
<select name="select2">
<option>Formation 1</option>
<option>Formation 2</option>
<option>Formation 3</option>
</select>
</label>
</div>
<div id="Layer19">
<form id="form6" name="form6" method="post" action="Inscriptions Formations.php">
<label>
<input type="submit" name="Submit" value="S'inscrire" />
</label>
</form>
</div>
<div id="Layer20">
<form id="form7" name="form7" method="post" action="Formations.php">
<label>
<a href="Formations.php"><input type="submit" name="Submit2" value="Annuler" />
</label>
</form>
</div>
<table width="877" height="503" border="1">
<tr>
<td width="867"><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table>
</body>
</html>
svp aider car le dépot de mon projet c cette mois et il me reste seulement ce problème
et merci
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 10:34
14 mai 2009 à 10:34
alors pour commencer, tout ce code met le dans une feuille de style ça tjs préférable, car ta pas besoin de répéter tt ces codes ds ttes té pages alors, tu l'apel par une simple réquéte : <SCRIPT LANGUAGE='javascript' SRC='include/codecss.js'></SCRIPT>.
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:173px;
top:140px;
width:598px;
height:501px;
z-index:1;
}
#Layer2 {
position:absolute;
left:346px;
top:56px;
width:294px;
height:24px;
z-index:2;
}
.Style1 {
font-size: 24px;
font-weight: bold;
}
#Layer3 {
position:absolute;
left:198px;
top:219px;
width:51px;
height:25px;
z-index:3;
}
#Layer4 {
position:absolute;
left:282px;
top:217px;
width:149px;
height:26px;
z-index:4;
}
#Layer5 {
position:absolute;
left:196px;
top:257px;
width:66px;
height:23px;
z-index:5;
}
#Layer6 {
position:absolute;
left:282px;
top:255px;
width:145px;
height:25px;
z-index:6;
}
#Layer7 {
position:absolute;
left:197px;
top:302px;
width:66px;
height:24px;
z-index:7;
}
#Layer8 {
position:absolute;
left:284px;
top:301px;
width:147px;
height:27px;
z-index:8;
}
#Layer9 {
position:absolute;
left:199px;
top:166px;
width:318px;
height:34px;
z-index:9;
}
.Style2 {
color: #006600;
font-weight: bold;
}
#Layer10 {
position:absolute;
left:198px;
top:355px;
width:149px;
height:20px;
z-index:10;
}
#Layer11 {
position:absolute;
left:201px;
top:396px;
width:32px;
height:20px;
z-index:11;
}
#Layer12 {
position:absolute;
left:236px;
top:396px;
width:22px;
height:20px;
z-index:12;
}
#Layer13 {
position:absolute;
left:282px;
top:395px;
width:56px;
height:20px;
z-index:13;
}
#Layer14 {
position:absolute;
left:195px;
top:372px;
width:85px;
height:110px;
z-index:14;
}
#Layer15 {
position:absolute;
left:198px;
top:511px;
width:147px;
height:24px;
z-index:15;
}
#Layer16 {
position:absolute;
left:381px;
top:510px;
width:115px;
height:23px;
z-index:16;
}
#Layer17 {
position:absolute;
left:200px;
top:554px;
width:145px;
height:25px;
z-index:17;
}
#Layer18 {
position:absolute;
left:382px;
top:556px;
width:119px;
height:20px;
z-index:18;
}
#Layer19 {
position:absolute;
left:409px;
top:643px;
width:64px;
height:26px;
z-index:19;
}
#Layer20 {
position:absolute;
left:500px;
top:642px;
width:64px;
height:26px;
z-index:20;
}
-->
</style>
autre chose j'ai besoin de savoir, qcq tu connais exactement sur lé BDD .
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:173px;
top:140px;
width:598px;
height:501px;
z-index:1;
}
#Layer2 {
position:absolute;
left:346px;
top:56px;
width:294px;
height:24px;
z-index:2;
}
.Style1 {
font-size: 24px;
font-weight: bold;
}
#Layer3 {
position:absolute;
left:198px;
top:219px;
width:51px;
height:25px;
z-index:3;
}
#Layer4 {
position:absolute;
left:282px;
top:217px;
width:149px;
height:26px;
z-index:4;
}
#Layer5 {
position:absolute;
left:196px;
top:257px;
width:66px;
height:23px;
z-index:5;
}
#Layer6 {
position:absolute;
left:282px;
top:255px;
width:145px;
height:25px;
z-index:6;
}
#Layer7 {
position:absolute;
left:197px;
top:302px;
width:66px;
height:24px;
z-index:7;
}
#Layer8 {
position:absolute;
left:284px;
top:301px;
width:147px;
height:27px;
z-index:8;
}
#Layer9 {
position:absolute;
left:199px;
top:166px;
width:318px;
height:34px;
z-index:9;
}
.Style2 {
color: #006600;
font-weight: bold;
}
#Layer10 {
position:absolute;
left:198px;
top:355px;
width:149px;
height:20px;
z-index:10;
}
#Layer11 {
position:absolute;
left:201px;
top:396px;
width:32px;
height:20px;
z-index:11;
}
#Layer12 {
position:absolute;
left:236px;
top:396px;
width:22px;
height:20px;
z-index:12;
}
#Layer13 {
position:absolute;
left:282px;
top:395px;
width:56px;
height:20px;
z-index:13;
}
#Layer14 {
position:absolute;
left:195px;
top:372px;
width:85px;
height:110px;
z-index:14;
}
#Layer15 {
position:absolute;
left:198px;
top:511px;
width:147px;
height:24px;
z-index:15;
}
#Layer16 {
position:absolute;
left:381px;
top:510px;
width:115px;
height:23px;
z-index:16;
}
#Layer17 {
position:absolute;
left:200px;
top:554px;
width:145px;
height:25px;
z-index:17;
}
#Layer18 {
position:absolute;
left:382px;
top:556px;
width:119px;
height:20px;
z-index:18;
}
#Layer19 {
position:absolute;
left:409px;
top:643px;
width:64px;
height:26px;
z-index:19;
}
#Layer20 {
position:absolute;
left:500px;
top:642px;
width:64px;
height:26px;
z-index:20;
}
-->
</style>
autre chose j'ai besoin de savoir, qcq tu connais exactement sur lé BDD .
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
mouradbatchen
Messages postés
29
Date d'inscription
mercredi 13 mai 2009
Statut
Membre
Dernière intervention
26 mai 2009
14 mai 2009 à 10:42
14 mai 2009 à 10:42
ok
j'utilise easyphp, tout d'abord j'ai appelé ma base (site web) puis j'ai crée les tableaux des formulaires
par exemple : la formulaire que j'ai t'envoyai son code son tableau et suivant:
id
nom
prenom
e-mail
niveau
diplome
formation souhaité
j'utilise easyphp, tout d'abord j'ai appelé ma base (site web) puis j'ai crée les tableaux des formulaires
par exemple : la formulaire que j'ai t'envoyai son code son tableau et suivant:
id
nom
prenom
niveau
diplome
formation souhaité
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 11:04
14 mai 2009 à 11:04
si je comprend bien tu veut stocker ces informatiion saisie par l'internaute dans ta base de donées seulement, sans autre opération? si c'est un simple stockage de données tu pouras faire ça :
1-création d'une BDD
2-connexion a la BDD
3-formulation de la requéte d'insertion ds ta BDD
1-création d'une BDD
2-connexion a la BDD
3-formulation de la requéte d'insertion ds ta BDD
mouradbatchen
Messages postés
29
Date d'inscription
mercredi 13 mai 2009
Statut
Membre
Dernière intervention
26 mai 2009
14 mai 2009 à 11:20
14 mai 2009 à 11:20
slt
oui cela je veux connaitre
svp pouvez vous me guider à travers l'exemple de formulaire que j'ai envoyé à vous
et merci de nouveaux
oui cela je veux connaitre
svp pouvez vous me guider à travers l'exemple de formulaire que j'ai envoyé à vous
et merci de nouveaux
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 11:27
14 mai 2009 à 11:27
Etape1: création de la BDD
-nom de la BDD : sitew_web (évite les éspaces entre les mots)
-tables : table1 / nom de la table : inscription
id---->type numérique
nom---->type varchar
prenom---->type varchar
e-mail---->type varchar
Niveau---->type varchar
diplome---->type varchar
formation---->type varchar
Etape2: Connexion et insertion des données ds la BDD
lors de cette étape tu dois faire apel a tout les champ saisie par l'utilisateur
<body>
<?php
$localhost="localhost"; //Nom du l'hote
$user="root"; //Nom de user
$password="";// Mot de passe de user
$base ="site_web"; //le nom de votre base// ";
$table ="inscription"; //la table sur laquelle ce script va enrengistrer les donnees //
// récupération des variables du formulaire
$id= $_POST['id'];
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$e-mail= $_POST['e-mail'];
$niveau= $_POST['niveau'];
$diplome= $_POST['diplome'];
$formation= $_POST['formation'];
//test sur la connexion
// Insertion des données dans la table alerte mail formulaire
$insertion= mysql_query("INSERT INTO inscription(id, nom, prenom,e-mail,niveau, diplome, formation,)VALUES
('', '" ,'$nom', '$prenom', '$prenom','$e-mail','$niveau','$diplome','$formation'");
or die("Erreur lors de l'exécution de la requête.<br />\nRequête : ". $insertion ."<br />\nMessage d'erreur : ". mysql_error());
//Si on arrive ici, c'est que tout s'est bien déroulé : on affiche le message de réussite */
echo "<p>Insertion des données danl la table ". $table ." réussie</p>\n";
mysql_close() ;
?>
</body>
-nom de la BDD : sitew_web (évite les éspaces entre les mots)
-tables : table1 / nom de la table : inscription
id---->type numérique
nom---->type varchar
prenom---->type varchar
e-mail---->type varchar
Niveau---->type varchar
diplome---->type varchar
formation---->type varchar
Etape2: Connexion et insertion des données ds la BDD
lors de cette étape tu dois faire apel a tout les champ saisie par l'utilisateur
<body>
<?php
$localhost="localhost"; //Nom du l'hote
$user="root"; //Nom de user
$password="";// Mot de passe de user
$base ="site_web"; //le nom de votre base// ";
$table ="inscription"; //la table sur laquelle ce script va enrengistrer les donnees //
// récupération des variables du formulaire
$id= $_POST['id'];
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$e-mail= $_POST['e-mail'];
$niveau= $_POST['niveau'];
$diplome= $_POST['diplome'];
$formation= $_POST['formation'];
//test sur la connexion
// Insertion des données dans la table alerte mail formulaire
$insertion= mysql_query("INSERT INTO inscription(id, nom, prenom,e-mail,niveau, diplome, formation,)VALUES
('', '" ,'$nom', '$prenom', '$prenom','$e-mail','$niveau','$diplome','$formation'");
or die("Erreur lors de l'exécution de la requête.<br />\nRequête : ". $insertion ."<br />\nMessage d'erreur : ". mysql_error());
//Si on arrive ici, c'est que tout s'est bien déroulé : on affiche le message de réussite */
echo "<p>Insertion des données danl la table ". $table ." réussie</p>\n";
mysql_close() ;
?>
</body>
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 11:32
14 mai 2009 à 11:32
autre chose qd tu fai apel a té variables tu dois les nomées de la méme facon que ds le formulaire
exple : champ nom : <input type="text" name="textfield" />
lors de la récupération : $nom = $_POST['textfield'];
si non il va pas le reconnaitre sur la base
exple : champ nom : <input type="text" name="textfield" />
lors de la récupération : $nom = $_POST['textfield'];
si non il va pas le reconnaitre sur la base
mouradbatchen
Messages postés
29
Date d'inscription
mercredi 13 mai 2009
Statut
Membre
Dernière intervention
26 mai 2009
14 mai 2009 à 11:55
14 mai 2009 à 11:55
merci beaucoup
mais quand je fait la table inscription de type varchar, si je fait sauvegarder il vient un message de local host me dit qu'il n'est pas un nombre et je peux pas sauvegarder
mais quand je fait la table inscription de type varchar, si je fait sauvegarder il vient un message de local host me dit qu'il n'est pas un nombre et je peux pas sauvegarder
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 12:03
14 mai 2009 à 12:03
Oui, parceque la table n'a pas de type,
varchar et numérique se sont les types des champs de la table inscription.
varchar et numérique se sont les types des champs de la table inscription.
mouradbatchen
Messages postés
29
Date d'inscription
mercredi 13 mai 2009
Statut
Membre
Dernière intervention
26 mai 2009
14 mai 2009 à 12:12
14 mai 2009 à 12:12
oui je sais
mais quand je fais le type de champs varchar et fais sauvegarder il me vient ce message
mais quand je fais le type de champs varchar et fais sauvegarder il me vient ce message
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 12:25
14 mai 2009 à 12:25
ben, je vois de l'essayé et c'était bon, ja'i ps eu de msg d'erreur..
*ok, c'est ps grave , essaye de décrire comment ta fait la création de la table "inscription", on y va petite à petit et on trouvera certainement le pb.
*ok, c'est ps grave , essaye de décrire comment ta fait la création de la table "inscription", on y va petite à petit et on trouvera certainement le pb.
mouradbatchen
Messages postés
29
Date d'inscription
mercredi 13 mai 2009
Statut
Membre
Dernière intervention
26 mai 2009
14 mai 2009 à 12:34
14 mai 2009 à 12:34
ok
dans EASYPHP je crée une base de donnée nomé site_web puis je crée la table nomé inscription et 7 champs
puis je rempli le tableau comme tu m'a dis puis je fais sauvegarder mais il vient le msg d'erreur.
quand j'essaye de faire les champs de types texte c'est bon et la table est sauvegarder
dans EASYPHP je crée une base de donnée nomé site_web puis je crée la table nomé inscription et 7 champs
puis je rempli le tableau comme tu m'a dis puis je fais sauvegarder mais il vient le msg d'erreur.
quand j'essaye de faire les champs de types texte c'est bon et la table est sauvegarder
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 12:39
14 mai 2009 à 12:39
ben, ravi pour toi que ça marche... si ta besoin d'autre chose dit le moi, j seré la.
mouradbatchen
Messages postés
29
Date d'inscription
mercredi 13 mai 2009
Statut
Membre
Dernière intervention
26 mai 2009
14 mai 2009 à 12:45
14 mai 2009 à 12:45
merci beaucoup
mais pourquoi tu n'as pas utiliser mysq connect seulement mysq query
mais pourquoi tu n'as pas utiliser mysq connect seulement mysq query
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 13:01
14 mai 2009 à 13:01
mysql_query : c'est pour l'envoie du requête d'insertion au serveur MySQL
mysql_connect : c'est pour ouvrir une connexion au serveur MySQL
et ici on a déja fait la connexion a la base :
$localhost="localhost"; //Nom du l'hote
$user="root"; //Nom de user
$password="";// Mot de passe de user
$base ="site_web"; //le nom de votre base// ";
$table ="inscription"; //la table sur laquelle ce script va enrengistrer les donnees //
et l'interrogation de la BDD :
$insertion= mysql_query("INSERT INTO inscription(id, nom, prenom,e-mail,niveau, diplome, formation,)VALUES
('', '" ,'$nom', '$prenom', '$prenom','$e-mail','$niveau','$diplome','$formation'");
or die("Erreur lors de l'exécution de la requête.<br />\nRequête : ". $insertion ."<br />\nMessage d'erreur : ". mysql_error());
tu peu écrire aussi : <?
$db=mysql_connect("localhost", "root", "");
mysql_select_db ("inscription",$db);
?>
mysql_connect : c'est pour ouvrir une connexion au serveur MySQL
et ici on a déja fait la connexion a la base :
$localhost="localhost"; //Nom du l'hote
$user="root"; //Nom de user
$password="";// Mot de passe de user
$base ="site_web"; //le nom de votre base// ";
$table ="inscription"; //la table sur laquelle ce script va enrengistrer les donnees //
et l'interrogation de la BDD :
$insertion= mysql_query("INSERT INTO inscription(id, nom, prenom,e-mail,niveau, diplome, formation,)VALUES
('', '" ,'$nom', '$prenom', '$prenom','$e-mail','$niveau','$diplome','$formation'");
or die("Erreur lors de l'exécution de la requête.<br />\nRequête : ". $insertion ."<br />\nMessage d'erreur : ". mysql_error());
tu peu écrire aussi : <?
$db=mysql_connect("localhost", "root", "");
mysql_select_db ("inscription",$db);
?>
mouradbatchen
Messages postés
29
Date d'inscription
mercredi 13 mai 2009
Statut
Membre
Dernière intervention
26 mai 2009
14 mai 2009 à 14:04
14 mai 2009 à 14:04
merci beaucoup
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
14 mai 2009 à 16:57
14 mai 2009 à 16:57
De rien..Bonne chance.
@cotta
@cotta
merci pour votre réponse
j'ai appelé ma bd site_web puis je fais la connection suivant mais je sais pas si vrai ou non
<!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>Document sans titre</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:327px;
top:57px;
width:356px;
height:635px;
z-index:1;
background-color: #00CCFF;
}
#Layer2 {
position:absolute;
left:404px;
top:69px;
width:186px;
height:31px;
z-index:2;
}
.Style1 {
color: #CC0000;
font-weight: bold;
}
#Layer3 {
position:absolute;
left:356px;
top:159px;
width:40px;
height:26px;
z-index:3;
}
#Layer4 {
position:absolute;
left:439px;
top:157px;
width:147px;
height:25px;
z-index:4;
}
#Layer5 {
position:absolute;
left:356px;
top:212px;
width:55px;
height:28px;
z-index:5;
}
#Layer6 {
position:absolute;
left:441px;
top:213px;
width:145px;
height:24px;
z-index:6;
}
#Layer7 {
position:absolute;
left:358px;
top:270px;
width:50px;
height:25px;
z-index:7;
}
#Layer8 {
position:absolute;
left:439px;
top:272px;
width:152px;
height:22px;
z-index:8;
}
#Layer9 {
position:absolute;
left:382px;
top:338px;
width:259px;
height:24px;
z-index:9;
}
#Layer10 {
position:absolute;
left:349px;
top:410px;
width:90px;
height:35px;
z-index:10;
}
#Layer11 {
position:absolute;
left:449px;
top:416px;
width:147px;
height:27px;
z-index:11;
}
#Layer12 {
position:absolute;
left:349px;
top:479px;
width:91px;
height:28px;
z-index:12;
}
#Layer13 {
position:absolute;
left:452px;
top:485px;
width:145px;
height:26px;
z-index:13;
}
#Layer14 {
position:absolute;
left:440px;
top:636px;
width:55px;
height:21px;
z-index:14;
}
#Layer15 {
position:absolute;
left:523px;
top:632px;
width:64px;
height:29px;
z-index:15;
}
#Layer17 {
position:absolute;
left:348px;
top:545px;
width:92px;
height:27px;
z-index:14;
}
#Layer18 {
position:absolute;
left:456px;
top:547px;
width:147px;
height:20px;
z-index:15;
}
#Layer19 {
position:absolute;
left:439px;
top:650px;
width:60px;
height:27px;
z-index:16;
}
#Layer20 {
position:absolute;
left:519px;
top:649px;
width:50px;
height:27px;
z-index:17;
}
-->
</style>
</head>
<body>
<div id="Layer1">
<form id="form1" name="form1" method="post" action="Achat revues.php">
<label>
<INPUT TYPE=HIDDEN NAME=identifiant VALUE=9999>
</label>
</form></div>
<div id="Layer2">
<div align="center" class="Style1">Achat des Revues de l'IRA </div>
</div>
<div id="Layer3"><strong>Nom</strong></div>
<div id="Layer4">
<form id="form2" name="form2" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield" />
</label>
</form>
</div>
<div id="Layer5"><strong>Prenom</strong></div>
<div id="Layer6">
<form id="form3" name="form3" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield2" />
</label>
</form>
</div>
<div id="Layer7"><strong>E-mail</strong></div>
<div id="Layer8">
<form id="form4" name="form4" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield3" />
</label>
</form>
</div>
<div id="Layer9"><strong>Revue Normal : 10 dinars Tunisienne Revue Special : 20 dinars Tunisienne </strong></div>
<div id="Layer10"><strong>Liste des Revues </strong></div>
<div id="Layer11">
<form id="form5" name="form5" method="post" action="Achat revues.php">
<label>
<select name="menu1" size="1" onchange="MM_jumpMenu('parent',this,0)">
<option>listes Revues</option>
<option>Revue n°1</option>
<option>Revue n°2</option>
<option>Revue n°3</option>
<option>Revue n°4</option>
<option>Revue n°5</option>
<option>Revue n°6</option>
<option>Revue Special de 1994</option>
<option>Revue n°7</option>
<option>Revue n°8</option>
<option>Revue n°9</option>
<option>Revue Special de 1996</option>
<option>Revue n°10</option>
<option>Revue n°11</option>
<option>Revue n°12</option>
<option>Revue n°13</option>
<option>Revue n°14</option>
<option>Revue n°15</option>
<option>Revue n°16</option>
<option>Revue n°17</option>
<option>Revue n°:18</option>
<option>Revue n°19 Special / 2 vol 40 D/T</option>
<option>Revue n°20 Special</option>
<option>Revue n°21 Special</option>
</select>
</label>
</form>
</div>
<div id="Layer12"><strong>Numero Carte E-dinar </strong></div>
<div id="Layer13">
<form id="form6" name="form6" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield4" />
</label>
</form>
</div>
<div id="Layer17"><strong>Code Secret </strong></div>
<div id="Layer18">
<form id="form7" name="form7" method="post" action="Achat revues.php">
<label>
<input type="password" name="textfield5" />
</label>
</form>
</div>
<div id="Layer19">
<form id="form8" name="form8" method="post" action="Achat revues.php">
<label>
<input type="submit" name="Submit" value="Payer" />
</label>
</form>
</div>
<div id="Layer20">
<form id="form9" name="form9" method="post" action="Achat revues.php">
<label>
<a href="Revues.php"><input type="submit" name="Submit3" value="Annuler" />
</label>
</form>
</div>
<?
$host ="localhost";
$user ="root";
$pass ="";
$bdd ="site_web";
mysql_connect($host,$user,$pass);
mysql_select_db($bdd);
if(@$_POST["identifiant"]&& @$_POST["textfield"] && @$_POST["textfield2"] && @$_POST["textfield3"] && @$_POST["menu1"] && @$_POST["textfield4"] && @$_POST["textfield5"])
{
$SQL = "INSERT into Inscription Séminaires"
."(identifiant,textfield,textfield2,textfield3,menu1,textfield4,textfield5)"
." VALUES('".$_POST["identifiant"]."'"
.",'".$_POST["textfield"]."'"
.",'".$_POST["textfield2"]."'"
.",'".$_POST["textfield3"]."'"
.",'".$_POST["menu1"]."'"
.",'".$_POST["textfield4"]."'"
.",'".$_POST["textfield5"]."'"
.")";
?>
<table width="828" height="766" border="0">
<tr>
<td height="760"> </td>
</tr>
</table>
</body>
</html>
j'ai appelé ma bd site_web puis je fais la connection suivant mais je sais pas si vrai ou non
<!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>Document sans titre</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:327px;
top:57px;
width:356px;
height:635px;
z-index:1;
background-color: #00CCFF;
}
#Layer2 {
position:absolute;
left:404px;
top:69px;
width:186px;
height:31px;
z-index:2;
}
.Style1 {
color: #CC0000;
font-weight: bold;
}
#Layer3 {
position:absolute;
left:356px;
top:159px;
width:40px;
height:26px;
z-index:3;
}
#Layer4 {
position:absolute;
left:439px;
top:157px;
width:147px;
height:25px;
z-index:4;
}
#Layer5 {
position:absolute;
left:356px;
top:212px;
width:55px;
height:28px;
z-index:5;
}
#Layer6 {
position:absolute;
left:441px;
top:213px;
width:145px;
height:24px;
z-index:6;
}
#Layer7 {
position:absolute;
left:358px;
top:270px;
width:50px;
height:25px;
z-index:7;
}
#Layer8 {
position:absolute;
left:439px;
top:272px;
width:152px;
height:22px;
z-index:8;
}
#Layer9 {
position:absolute;
left:382px;
top:338px;
width:259px;
height:24px;
z-index:9;
}
#Layer10 {
position:absolute;
left:349px;
top:410px;
width:90px;
height:35px;
z-index:10;
}
#Layer11 {
position:absolute;
left:449px;
top:416px;
width:147px;
height:27px;
z-index:11;
}
#Layer12 {
position:absolute;
left:349px;
top:479px;
width:91px;
height:28px;
z-index:12;
}
#Layer13 {
position:absolute;
left:452px;
top:485px;
width:145px;
height:26px;
z-index:13;
}
#Layer14 {
position:absolute;
left:440px;
top:636px;
width:55px;
height:21px;
z-index:14;
}
#Layer15 {
position:absolute;
left:523px;
top:632px;
width:64px;
height:29px;
z-index:15;
}
#Layer17 {
position:absolute;
left:348px;
top:545px;
width:92px;
height:27px;
z-index:14;
}
#Layer18 {
position:absolute;
left:456px;
top:547px;
width:147px;
height:20px;
z-index:15;
}
#Layer19 {
position:absolute;
left:439px;
top:650px;
width:60px;
height:27px;
z-index:16;
}
#Layer20 {
position:absolute;
left:519px;
top:649px;
width:50px;
height:27px;
z-index:17;
}
-->
</style>
</head>
<body>
<div id="Layer1">
<form id="form1" name="form1" method="post" action="Achat revues.php">
<label>
<INPUT TYPE=HIDDEN NAME=identifiant VALUE=9999>
</label>
</form></div>
<div id="Layer2">
<div align="center" class="Style1">Achat des Revues de l'IRA </div>
</div>
<div id="Layer3"><strong>Nom</strong></div>
<div id="Layer4">
<form id="form2" name="form2" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield" />
</label>
</form>
</div>
<div id="Layer5"><strong>Prenom</strong></div>
<div id="Layer6">
<form id="form3" name="form3" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield2" />
</label>
</form>
</div>
<div id="Layer7"><strong>E-mail</strong></div>
<div id="Layer8">
<form id="form4" name="form4" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield3" />
</label>
</form>
</div>
<div id="Layer9"><strong>Revue Normal : 10 dinars Tunisienne Revue Special : 20 dinars Tunisienne </strong></div>
<div id="Layer10"><strong>Liste des Revues </strong></div>
<div id="Layer11">
<form id="form5" name="form5" method="post" action="Achat revues.php">
<label>
<select name="menu1" size="1" onchange="MM_jumpMenu('parent',this,0)">
<option>listes Revues</option>
<option>Revue n°1</option>
<option>Revue n°2</option>
<option>Revue n°3</option>
<option>Revue n°4</option>
<option>Revue n°5</option>
<option>Revue n°6</option>
<option>Revue Special de 1994</option>
<option>Revue n°7</option>
<option>Revue n°8</option>
<option>Revue n°9</option>
<option>Revue Special de 1996</option>
<option>Revue n°10</option>
<option>Revue n°11</option>
<option>Revue n°12</option>
<option>Revue n°13</option>
<option>Revue n°14</option>
<option>Revue n°15</option>
<option>Revue n°16</option>
<option>Revue n°17</option>
<option>Revue n°:18</option>
<option>Revue n°19 Special / 2 vol 40 D/T</option>
<option>Revue n°20 Special</option>
<option>Revue n°21 Special</option>
</select>
</label>
</form>
</div>
<div id="Layer12"><strong>Numero Carte E-dinar </strong></div>
<div id="Layer13">
<form id="form6" name="form6" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield4" />
</label>
</form>
</div>
<div id="Layer17"><strong>Code Secret </strong></div>
<div id="Layer18">
<form id="form7" name="form7" method="post" action="Achat revues.php">
<label>
<input type="password" name="textfield5" />
</label>
</form>
</div>
<div id="Layer19">
<form id="form8" name="form8" method="post" action="Achat revues.php">
<label>
<input type="submit" name="Submit" value="Payer" />
</label>
</form>
</div>
<div id="Layer20">
<form id="form9" name="form9" method="post" action="Achat revues.php">
<label>
<a href="Revues.php"><input type="submit" name="Submit3" value="Annuler" />
</label>
</form>
</div>
<?
$host ="localhost";
$user ="root";
$pass ="";
$bdd ="site_web";
mysql_connect($host,$user,$pass);
mysql_select_db($bdd);
if(@$_POST["identifiant"]&& @$_POST["textfield"] && @$_POST["textfield2"] && @$_POST["textfield3"] && @$_POST["menu1"] && @$_POST["textfield4"] && @$_POST["textfield5"])
{
$SQL = "INSERT into Inscription Séminaires"
."(identifiant,textfield,textfield2,textfield3,menu1,textfield4,textfield5)"
." VALUES('".$_POST["identifiant"]."'"
.",'".$_POST["textfield"]."'"
.",'".$_POST["textfield2"]."'"
.",'".$_POST["textfield3"]."'"
.",'".$_POST["menu1"]."'"
.",'".$_POST["textfield4"]."'"
.",'".$_POST["textfield5"]."'"
.")";
?>
<table width="828" height="766" border="0">
<tr>
<td height="760"> </td>
</tr>
</table>
</body>
</html>
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
20 mai 2009 à 11:20
20 mai 2009 à 11:20
etape 1 :
met tout ce code sur une seule feuille de style :
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:327px;
top:57px;
width:356px;
height:635px;
z-index:1;
background-color: #00CCFF;
}
#Layer2 {
position:absolute;
left:404px;
top:69px;
width:186px;
height:31px;
z-index:2;
}
.Style1 {
color: #CC0000;
font-weight: bold;
}
#Layer3 {
position:absolute;
left:356px;
top:159px;
width:40px;
height:26px;
z-index:3;
}
#Layer4 {
position:absolute;
left:439px;
top:157px;
width:147px;
height:25px;
z-index:4;
}
#Layer5 {
position:absolute;
left:356px;
top:212px;
width:55px;
height:28px;
z-index:5;
}
#Layer6 {
position:absolute;
left:441px;
top:213px;
width:145px;
height:24px;
z-index:6;
}
#Layer7 {
position:absolute;
left:358px;
top:270px;
width:50px;
height:25px;
z-index:7;
}
#Layer8 {
position:absolute;
left:439px;
top:272px;
width:152px;
height:22px;
z-index:8;
}
#Layer9 {
position:absolute;
left:382px;
top:338px;
width:259px;
height:24px;
z-index:9;
}
#Layer10 {
position:absolute;
left:349px;
top:410px;
width:90px;
height:35px;
z-index:10;
}
#Layer11 {
position:absolute;
left:449px;
top:416px;
width:147px;
height:27px;
z-index:11;
}
#Layer12 {
position:absolute;
left:349px;
top:479px;
width:91px;
height:28px;
z-index:12;
}
#Layer13 {
position:absolute;
left:452px;
top:485px;
width:145px;
height:26px;
z-index:13;
}
#Layer14 {
position:absolute;
left:440px;
top:636px;
width:55px;
height:21px;
z-index:14;
}
#Layer15 {
position:absolute;
left:523px;
top:632px;
width:64px;
height:29px;
z-index:15;
}
#Layer17 {
position:absolute;
left:348px;
top:545px;
width:92px;
height:27px;
z-index:14;
}
#Layer18 {
position:absolute;
left:456px;
top:547px;
width:147px;
height:20px;
z-index:15;
}
#Layer19 {
position:absolute;
left:439px;
top:650px;
width:60px;
height:27px;
z-index:16;
}
#Layer20 {
position:absolute;
left:519px;
top:649px;
width:50px;
height:27px;
z-index:17;
}
-->
</style>
met tout ce code sur une seule feuille de style :
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:327px;
top:57px;
width:356px;
height:635px;
z-index:1;
background-color: #00CCFF;
}
#Layer2 {
position:absolute;
left:404px;
top:69px;
width:186px;
height:31px;
z-index:2;
}
.Style1 {
color: #CC0000;
font-weight: bold;
}
#Layer3 {
position:absolute;
left:356px;
top:159px;
width:40px;
height:26px;
z-index:3;
}
#Layer4 {
position:absolute;
left:439px;
top:157px;
width:147px;
height:25px;
z-index:4;
}
#Layer5 {
position:absolute;
left:356px;
top:212px;
width:55px;
height:28px;
z-index:5;
}
#Layer6 {
position:absolute;
left:441px;
top:213px;
width:145px;
height:24px;
z-index:6;
}
#Layer7 {
position:absolute;
left:358px;
top:270px;
width:50px;
height:25px;
z-index:7;
}
#Layer8 {
position:absolute;
left:439px;
top:272px;
width:152px;
height:22px;
z-index:8;
}
#Layer9 {
position:absolute;
left:382px;
top:338px;
width:259px;
height:24px;
z-index:9;
}
#Layer10 {
position:absolute;
left:349px;
top:410px;
width:90px;
height:35px;
z-index:10;
}
#Layer11 {
position:absolute;
left:449px;
top:416px;
width:147px;
height:27px;
z-index:11;
}
#Layer12 {
position:absolute;
left:349px;
top:479px;
width:91px;
height:28px;
z-index:12;
}
#Layer13 {
position:absolute;
left:452px;
top:485px;
width:145px;
height:26px;
z-index:13;
}
#Layer14 {
position:absolute;
left:440px;
top:636px;
width:55px;
height:21px;
z-index:14;
}
#Layer15 {
position:absolute;
left:523px;
top:632px;
width:64px;
height:29px;
z-index:15;
}
#Layer17 {
position:absolute;
left:348px;
top:545px;
width:92px;
height:27px;
z-index:14;
}
#Layer18 {
position:absolute;
left:456px;
top:547px;
width:147px;
height:20px;
z-index:15;
}
#Layer19 {
position:absolute;
left:439px;
top:650px;
width:60px;
height:27px;
z-index:16;
}
#Layer20 {
position:absolute;
left:519px;
top:649px;
width:50px;
height:27px;
z-index:17;
}
-->
</style>
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
>
batchen
20 mai 2009 à 11:37
20 mai 2009 à 11:37
dac,
tu va sur dreamwaever, fichier> nouveau> tu choisi CSS... tu met tout ton code css dedans, puis qd tu en a besoin , tu l'appel simplement : <link rel="stylesheet" type="text/css" media="screen" href="style.php">
tu va sur dreamwaever, fichier> nouveau> tu choisi CSS... tu met tout ton code css dedans, puis qd tu en a besoin , tu l'appel simplement : <link rel="stylesheet" type="text/css" media="screen" href="style.php">
batchen
>
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
20 mai 2009 à 12:01
20 mai 2009 à 12:01
j'ai fais ce code dans un fichier css mais où je peux l'enregistrer
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
>
batchen
20 mai 2009 à 12:09
20 mai 2009 à 12:09
tu l'enregistre ds le dossier de ton site :
c: > easyPhp > www > batchen > alors ici on trouvera 3fichiers + les pagen en HTML ou PHP
1fichier : images (ou tu mettra le découpage de ta makette ).
2fichier: include (pour mettre té feuilles de style css, de connexion...)
3ficfier: anim (pour mettre té animation si t'en a)..
je té donné un exemple pour faire plus simple..
c: > easyPhp > www > batchen > alors ici on trouvera 3fichiers + les pagen en HTML ou PHP
1fichier : images (ou tu mettra le découpage de ta makette ).
2fichier: include (pour mettre té feuilles de style css, de connexion...)
3ficfier: anim (pour mettre té animation si t'en a)..
je té donné un exemple pour faire plus simple..
batchen
>
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
20 mai 2009 à 12:21
20 mai 2009 à 12:21
merci beaucoup mon ami cotta
excuser moi pour mes question car je suis débutant en php et html et bd
pour le code de formulaire que je vous envoyé, j'ai fais son tableau appelé "revues" avec 7 champs (id,nom,prenom, e-mail,revue,carte,code)
ma problème c comment faire la base des données de cet table (structure et contenu de table)
excuser moi pour mes question car je suis débutant en php et html et bd
pour le code de formulaire que je vous envoyé, j'ai fais son tableau appelé "revues" avec 7 champs (id,nom,prenom, e-mail,revue,carte,code)
ma problème c comment faire la base des données de cet table (structure et contenu de table)
bjrs cotta
tu m'as aider bien pour cela je te remercie beaucoup
je fais comme tu m'as dit, j'ai nommé ma bd (site-web)et j'ai crée la table "revues" contenant les champs(id,nom,prenom,e-mail,revue,carte,code) puis je fais les autres etapes mais je ne sais s'ils sont vrai ou non. voilà ce que je fais ci dessous. svp peut tu examiner ce que je fais
<body>
<div id="Layer1">
<form id="form1" name="form1" method="post" action="Achat revues.php">
<label>
<INPUT TYPE=HIDDEN NAME=identifiant VALUE=9999>
</label>
</form></div>
<div id="Layer2">
<div align="center" class="Style1">Achat des Revues de l'IRA </div>
</div>
<div id="Layer3"><strong>Nom</strong></div>
<div id="Layer4">
<form id="form2" name="form2" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield" />
</label>
</form>
</div>
<div id="Layer5"><strong>Prenom</strong></div>
<div id="Layer6">
<form id="form3" name="form3" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield2" />
</label>
</form>
</div>
<div id="Layer7"><strong>E-mail</strong></div>
<div id="Layer8">
<form id="form4" name="form4" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield3" />
</label>
</form>
</div>
<div id="Layer9"><strong>Revue Normal : 10 dinars Tunisienne Revue Special : 20 dinars Tunisienne </strong></div>
<div id="Layer10"><strong>Liste des Revues </strong></div>
<div id="Layer11">
<form id="form5" name="form5" method="post" action="Achat revues.php">
<label>
<select name="menu1" size="1" onchange="MM_jumpMenu('parent',this,0)">
<option>listes Revues</option>
<option>Revue n°1</option>
<option>Revue n°2</option>
<option>Revue n°3</option>
<option>Revue n°4</option>
<option>Revue n°5</option>
<option>Revue n°6</option>
<option>Revue Special de 1994</option>
<option>Revue n°7</option>
<option>Revue n°8</option>
<option>Revue n°9</option>
<option>Revue Special de 1996</option>
<option>Revue n°10</option>
<option>Revue n°11</option>
<option>Revue n°12</option>
<option>Revue n°13</option>
<option>Revue n°14</option>
<option>Revue n°15</option>
<option>Revue n°16</option>
<option>Revue n°17</option>
<option>Revue n°:18</option>
<option>Revue n°19 Special / 2 vol 40 D/T</option>
<option>Revue n°20 Special</option>
<option>Revue n°21 Special</option>
</select>
</label>
</form>
</div>
<div id="Layer12"><strong>Numero Carte E-dinar </strong></div>
<div id="Layer13">
<form id="form6" name="form6" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield4" />
</label>
</form>
</div>
<div id="Layer17"><strong>Code Secret </strong></div>
<div id="Layer18">
<form id="form7" name="form7" method="post" action="Achat revues.php">
<label>
<input type="password" name="textfield5" />
</label>
</form>
</div>
<div id="Layer19">
<form id="form8" name="form8" method="post" action="Achat revues.php">
<label>
<input type="submit" name="Submit" value="Payer" />
</label>
</form>
</div>
<div id="Layer20">
<form id="form9" name="form9" method="post" action="Achat revues.php">
<label>
<a href="Revues.php"><input type="submit" name="Submit3" value="Annuler" />
</label>
</form>
</div>
<?
$host ="localhost";
$user ="root";
$pass ="";
$bdd ="site_web";
mysql_connect($host,$user,$pass);
mysql_select_db($bdd);
if(@$_POST["identifiant"]&& @$_POST["textfield"] && @$_POST["textfield2"] && @$_POST["textfield3"] && @$_POST["menu1"] && @$_POST["textfield4"] && @$_POST["textfield5"])
{
$SQL = "INSERT into Inscription Séminaires"
."(identifiant,textfield,textfield2,textfield3,menu1,textfield4,textfield5)"
." VALUES('".$_POST["identifiant"]."'"
.",'".$_POST["textfield"]."'"
.",'".$_POST["textfield2"]."'"
.",'".$_POST["textfield3"]."'"
.",'".$_POST["menu1"]."'"
.",'".$_POST["textfield4"]."'"
.",'".$_POST["textfield5"]."'"
.")";
mysql_query($SQL);
}
?>
<table width="828" height="766" border="0">
<tr>
<td height="760"> </td>
</tr>
</table>
</body>
et merci
tu m'as aider bien pour cela je te remercie beaucoup
je fais comme tu m'as dit, j'ai nommé ma bd (site-web)et j'ai crée la table "revues" contenant les champs(id,nom,prenom,e-mail,revue,carte,code) puis je fais les autres etapes mais je ne sais s'ils sont vrai ou non. voilà ce que je fais ci dessous. svp peut tu examiner ce que je fais
<body>
<div id="Layer1">
<form id="form1" name="form1" method="post" action="Achat revues.php">
<label>
<INPUT TYPE=HIDDEN NAME=identifiant VALUE=9999>
</label>
</form></div>
<div id="Layer2">
<div align="center" class="Style1">Achat des Revues de l'IRA </div>
</div>
<div id="Layer3"><strong>Nom</strong></div>
<div id="Layer4">
<form id="form2" name="form2" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield" />
</label>
</form>
</div>
<div id="Layer5"><strong>Prenom</strong></div>
<div id="Layer6">
<form id="form3" name="form3" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield2" />
</label>
</form>
</div>
<div id="Layer7"><strong>E-mail</strong></div>
<div id="Layer8">
<form id="form4" name="form4" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield3" />
</label>
</form>
</div>
<div id="Layer9"><strong>Revue Normal : 10 dinars Tunisienne Revue Special : 20 dinars Tunisienne </strong></div>
<div id="Layer10"><strong>Liste des Revues </strong></div>
<div id="Layer11">
<form id="form5" name="form5" method="post" action="Achat revues.php">
<label>
<select name="menu1" size="1" onchange="MM_jumpMenu('parent',this,0)">
<option>listes Revues</option>
<option>Revue n°1</option>
<option>Revue n°2</option>
<option>Revue n°3</option>
<option>Revue n°4</option>
<option>Revue n°5</option>
<option>Revue n°6</option>
<option>Revue Special de 1994</option>
<option>Revue n°7</option>
<option>Revue n°8</option>
<option>Revue n°9</option>
<option>Revue Special de 1996</option>
<option>Revue n°10</option>
<option>Revue n°11</option>
<option>Revue n°12</option>
<option>Revue n°13</option>
<option>Revue n°14</option>
<option>Revue n°15</option>
<option>Revue n°16</option>
<option>Revue n°17</option>
<option>Revue n°:18</option>
<option>Revue n°19 Special / 2 vol 40 D/T</option>
<option>Revue n°20 Special</option>
<option>Revue n°21 Special</option>
</select>
</label>
</form>
</div>
<div id="Layer12"><strong>Numero Carte E-dinar </strong></div>
<div id="Layer13">
<form id="form6" name="form6" method="post" action="Achat revues.php">
<label>
<input type="text" name="textfield4" />
</label>
</form>
</div>
<div id="Layer17"><strong>Code Secret </strong></div>
<div id="Layer18">
<form id="form7" name="form7" method="post" action="Achat revues.php">
<label>
<input type="password" name="textfield5" />
</label>
</form>
</div>
<div id="Layer19">
<form id="form8" name="form8" method="post" action="Achat revues.php">
<label>
<input type="submit" name="Submit" value="Payer" />
</label>
</form>
</div>
<div id="Layer20">
<form id="form9" name="form9" method="post" action="Achat revues.php">
<label>
<a href="Revues.php"><input type="submit" name="Submit3" value="Annuler" />
</label>
</form>
</div>
<?
$host ="localhost";
$user ="root";
$pass ="";
$bdd ="site_web";
mysql_connect($host,$user,$pass);
mysql_select_db($bdd);
if(@$_POST["identifiant"]&& @$_POST["textfield"] && @$_POST["textfield2"] && @$_POST["textfield3"] && @$_POST["menu1"] && @$_POST["textfield4"] && @$_POST["textfield5"])
{
$SQL = "INSERT into Inscription Séminaires"
."(identifiant,textfield,textfield2,textfield3,menu1,textfield4,textfield5)"
." VALUES('".$_POST["identifiant"]."'"
.",'".$_POST["textfield"]."'"
.",'".$_POST["textfield2"]."'"
.",'".$_POST["textfield3"]."'"
.",'".$_POST["menu1"]."'"
.",'".$_POST["textfield4"]."'"
.",'".$_POST["textfield5"]."'"
.")";
mysql_query($SQL);
}
?>
<table width="828" height="766" border="0">
<tr>
<td height="760"> </td>
</tr>
</table>
</body>
et merci
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
21 mai 2009 à 10:58
21 mai 2009 à 10:58
Bonjour, batchen
ok, juste une minute, que je puisse voir ce qu'il y a ds ce code. :)
@cotta
ok, juste une minute, que je puisse voir ce qu'il y a ds ce code. :)
@cotta
batchen
>
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
21 mai 2009 à 11:20
21 mai 2009 à 11:20
ok
je t'attends
je t'attends
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
>
batchen
21 mai 2009 à 11:54
21 mai 2009 à 11:54
pkoi a chake foi tu met ca ???????????
<form id="form8" name="form8" method="post" action="Achat revues.php">
t'en a ps besoin c'est un seule formulaire.
<form id="form8" name="form8" method="post" action="Achat revues.php">
t'en a ps besoin c'est un seule formulaire.
batchen
>
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
21 mai 2009 à 12:33
21 mai 2009 à 12:33
ok merci
mais comment je peux faire le form
si possible peux tu corriger sur le code de la page que je t'envoyé
autre chose, est il vrai ce que je fais pour la connection ou non
mais comment je peux faire le form
si possible peux tu corriger sur le code de la page que je t'envoyé
autre chose, est il vrai ce que je fais pour la connection ou non
merci
mais comment je peux faire pour ce que tu m'a dis pour le form
si possible peux tu le faire sur ce code que j'ai encoyé
mais comment je peux faire pour ce que tu m'a dis pour le form
si possible peux tu le faire sur ce code que j'ai encoyé
cotta
Messages postés
294
Date d'inscription
mercredi 5 novembre 2008
Statut
Membre
Dernière intervention
3 mai 2010
3
21 mai 2009 à 12:43
21 mai 2009 à 12:43
alors, ça c'est la premiére celle du formulaire, j'ai essayé de l'arranger un peu :
<table width="80%" border="1" align="center"><form action="Achat-revue.php" method="post" name="form_achat">
<tr>
<td width="20%">Nom * </td>
<td width="80%"><input name="nom" type="text" size="20" maxlength="100" /></td>
</tr>
<tr>
<td>Prenom *</td>
<td><input name="prenom" type="text" size="20" maxlength="100" /></td>
</tr>
<tr>
<td>E-mail *</td>
<td><input name="mail" type="text" size="70" maxlength="100" /></td>
</tr>
<tr>
<td colspan="2">Revue Normal<strong> : 10 dinars Tunisienne <br />
</strong>Revue spécial<strong> : 20 dinars Tunisienne</strong></td>
</tr>
<tr>
<td>Liste des revues</td>
<td>
<select name="lr" size="1" onchange="MM_jumpMenu('parent',this,0)">
<option>listes Revues</option>
<option>Revue n°1</option>
<option>Revue n°2</option>
<option>Revue n°3</option>
<option>Revue n°4</option>
<option>Revue n°5</option>
<option>Revue n°6</option>
<option>Revue Special de 1994</option>
<option>Revue n°7</option>
<option>Revue n°8</option>
<option>Revue n°9</option>
<option>Revue Special de 1996</option>
<option>Revue n°10</option>
<option>Revue n°11</option>
<option>Revue n°12</option>
<option>Revue n°13</option>
<option>Revue n°14</option>
<option>Revue n°15</option>
<option>Revue n°16</option>
<option>Revue n°17</option>
<option>Revue n°:18</option>
<option>Revue n°19 Special / 2 vol 40 D/T</option>
<option>Revue n°20 Special</option>
<option>Revue n°21 Special</option>
</select> </td>
</tr>
<tr>
<td>Numéro carte E-dinar *</td>
<td><input name="carte" type="text" size="70" maxlength="100" /></td>
</tr>
<tr>
<td>Code secret *</td>
<td><input name="code" type="text" size="70" maxlength="100" /></td>
</tr>
<tr>
<td height="36"> </td>
<td>
<label>
<input type="submit" name="Valider" id="Valider" value="Envoyer" onclick="">
</label>
<input name="Effacer" type="reset" value="Effacer" id="reset" >
</form>
<tr>
<td> </td>
<td><div align="right">Les champs marqué d'une * sont obligatoires</div></td>
</tr>
</table>
La deuxiéme page c'est celle de l'exécution de la requéte : nommée ds le formulaire Achat-revue.php)
<?php
$localhost="localhost"; //Nom du l'hote
$user="root"; //Nom de user
$password="";// Mot de passe de user
$base ="site_web"; //le nom de votre base// ";
$table ="revues"; //la table sur laquelle ce script va enrengistrer les donnees //
mysql_connect($localhost,$user,$password) or die ("Pb connexion serveur ".mysql_error());
mysql_select_db($base) or die ("Pb selection base ".mysql_error());
// récupération des variables du formulaire
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$revue= $_POST['revue'];
$e_mail= $_POST['mail'];
$lr= $_POST['lr'];
$carte= $_POST['carte'];
$code = $_POST['code'];
//test sur la connexion
// Insertion des données dans la table alerte mail formulaire
$insertion= mysql_query("INSERT INTO revues (id, nom, prenom, adresse, e-mail, revue, carte, code) VALUES ('', '" ,'$nom', '$prenom', '$revue','$e_mail','$lr','$carte' ");
or die("Erreur lors de l'exécution de la requête.<br />\nRequête : ". $insertion ."<br />\nMessage d'erreur : ". mysql_error());
//Si on arrive ici, c'est que tout s'est bien déroulé : on affiche le message de réussite */
echo "<p>Insertion des données dans la table ". $table ." réussie</p>\n";
mysql_close() ;
?>
Rque: est ce que ta mi lors de la création de ta table REVUES, le Id auto-incrémenté?
<table width="80%" border="1" align="center"><form action="Achat-revue.php" method="post" name="form_achat">
<tr>
<td width="20%">Nom * </td>
<td width="80%"><input name="nom" type="text" size="20" maxlength="100" /></td>
</tr>
<tr>
<td>Prenom *</td>
<td><input name="prenom" type="text" size="20" maxlength="100" /></td>
</tr>
<tr>
<td>E-mail *</td>
<td><input name="mail" type="text" size="70" maxlength="100" /></td>
</tr>
<tr>
<td colspan="2">Revue Normal<strong> : 10 dinars Tunisienne <br />
</strong>Revue spécial<strong> : 20 dinars Tunisienne</strong></td>
</tr>
<tr>
<td>Liste des revues</td>
<td>
<select name="lr" size="1" onchange="MM_jumpMenu('parent',this,0)">
<option>listes Revues</option>
<option>Revue n°1</option>
<option>Revue n°2</option>
<option>Revue n°3</option>
<option>Revue n°4</option>
<option>Revue n°5</option>
<option>Revue n°6</option>
<option>Revue Special de 1994</option>
<option>Revue n°7</option>
<option>Revue n°8</option>
<option>Revue n°9</option>
<option>Revue Special de 1996</option>
<option>Revue n°10</option>
<option>Revue n°11</option>
<option>Revue n°12</option>
<option>Revue n°13</option>
<option>Revue n°14</option>
<option>Revue n°15</option>
<option>Revue n°16</option>
<option>Revue n°17</option>
<option>Revue n°:18</option>
<option>Revue n°19 Special / 2 vol 40 D/T</option>
<option>Revue n°20 Special</option>
<option>Revue n°21 Special</option>
</select> </td>
</tr>
<tr>
<td>Numéro carte E-dinar *</td>
<td><input name="carte" type="text" size="70" maxlength="100" /></td>
</tr>
<tr>
<td>Code secret *</td>
<td><input name="code" type="text" size="70" maxlength="100" /></td>
</tr>
<tr>
<td height="36"> </td>
<td>
<label>
<input type="submit" name="Valider" id="Valider" value="Envoyer" onclick="">
</label>
<input name="Effacer" type="reset" value="Effacer" id="reset" >
</form>
<tr>
<td> </td>
<td><div align="right">Les champs marqué d'une * sont obligatoires</div></td>
</tr>
</table>
La deuxiéme page c'est celle de l'exécution de la requéte : nommée ds le formulaire Achat-revue.php)
<?php
$localhost="localhost"; //Nom du l'hote
$user="root"; //Nom de user
$password="";// Mot de passe de user
$base ="site_web"; //le nom de votre base// ";
$table ="revues"; //la table sur laquelle ce script va enrengistrer les donnees //
mysql_connect($localhost,$user,$password) or die ("Pb connexion serveur ".mysql_error());
mysql_select_db($base) or die ("Pb selection base ".mysql_error());
// récupération des variables du formulaire
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$revue= $_POST['revue'];
$e_mail= $_POST['mail'];
$lr= $_POST['lr'];
$carte= $_POST['carte'];
$code = $_POST['code'];
//test sur la connexion
// Insertion des données dans la table alerte mail formulaire
$insertion= mysql_query("INSERT INTO revues (id, nom, prenom, adresse, e-mail, revue, carte, code) VALUES ('', '" ,'$nom', '$prenom', '$revue','$e_mail','$lr','$carte' ");
or die("Erreur lors de l'exécution de la requête.<br />\nRequête : ". $insertion ."<br />\nMessage d'erreur : ". mysql_error());
//Si on arrive ici, c'est que tout s'est bien déroulé : on affiche le message de réussite */
echo "<p>Insertion des données dans la table ". $table ." réussie</p>\n";
mysql_close() ;
?>
Rque: est ce que ta mi lors de la création de ta table REVUES, le Id auto-incrémenté?