Formulaire php

Fermé
marietode Messages postés 8 Date d'inscription mardi 19 juin 2018 Statut Membre Dernière intervention 22 juin 2018 - 19 juin 2018 à 14:08
marietode Messages postés 8 Date d'inscription mardi 19 juin 2018 Statut Membre Dernière intervention 22 juin 2018 - 19 juin 2018 à 16:04
bonjour.suis passionnée de programmation et j aimerais vous soumettre ma préoccupation en formulaire php etr base de données.j ai un projet depuis peu qui ne bouge pas.JE VOUS EN PRIE,AIDEZ-MOI.mon formulaire php
<html>
<head>
<title> </title>
<meta charset="utf-8">
</head>
<body>
<form id='sbe' action=' moi_traitment.php' method='post' enctype='multipart/form-data'>
<style type="text/css">
#sbe {
position:absolute;
top:20%;
left:30%;
margin-left:-150px;
margin-top:-100px;
padding: 1em;
border: 1px solid #CCC;border-radius: 1em;
}
label {
/* Pour être sûrs que toutes les étiquettes ont même taille et sont correctement alignées */
display: inline-block;
width: 90px;
text-align: right;
}
input, textarea {
/* Pour s'assurer que tous les champs texte ont la même police.
Par défaut, les textarea ont une police monospace */
font: 1em sans-serif;

/* Pour que tous les champs texte aient la même dimension */
width: 300px;
box-sizing: border-box;

/* Pour harmoniser le look & feel des bordures des champs texte */
border: 1px solid #999;
}

}
.button {
/* Pour placer le bouton à la même position que les champs texte */
padding-right: 90px; /* même taille que les étiquettes */
}

button {
/* Cette marge supplémentaire représente grosso modo le même espace que celui
entre les étiquettes et les champs texte */
margin-right: .5em;
}
</style>

<h1 align="center"><U>FORMULAIRE D'INSCRIPTION DU REQUERANT</U></h1>
<FIELDSET style='width:800px '>
<LEGEND align='center'><B>IDENTIFICATION</B></LEGEND>
<div>
<label for="name">NOM :</label>
<input type="text" id="name" name="nom">
</div><BR>

<div>
<label for="pren">PRENOM :</label>
<input type="text" id="pren" name="prenom">
</div>

<div>
<label for="piece">N CNI/AUTRE :</label>
<input type="text" id="piece" name="cni">
</div>
<div>
<label for="cpte">N DE COMPTE:</label>
<input type="text" id="cpte" name="cpte">
</div> <BR>
<div>
<label for="contact"> CONTACT:</label>
<input type="text" id="contact" name="contact">
</div>
<div>
<label for="mail"> E-MAIL:</label>
<input type="text" id="mail" name="email">
</div>
<div>
<label for="naissance">DATE DE NAISSANCE:</label>
<input type="date" id="naissance" name="nais">
</div>

<div>
<label for="moyen"> MOYEN DE PAIEMENT:</label>
<Select Name='paiement' >

<OPTION Value='orange' >ORANGE</OPTION>
<OPTION Value='mtn'>MTN</OPTION>
<OPTION Value='flooz'>FLOOZ</OPTION>

</div>
<U>(NB)Les frais de virement sont à la charge du client.</U>
echo'' <BR>

</FIELDSET>
<FIELDSET style='width:800px'>
<LEGEND align='center'><B> </B></LEGEND>
<div>
<label for="moyen"> </label>
<Select Name=' ' >

<OPTION Value=' ' Name=' '> </OPTION>
<OPTION Value=' ' Name=' '></OPTION>
<OPTION Value=' 'Name=' '></OPTION>
</div>
</FIELDSET>
<FIELDSET style='width:800px'>
<LEGEND align='center'><B>RESERVE A SANTE BIEN-ETRE(LONGRICH)</B></LEGEND>
BANK:                         <INPUT Type='Text' Name='bank' ><BR>
NOM DU COMPTE:   <INPUT Type='Text' Name='nomcompte' ><BR>
N DU COMPTE:         <INPUT Type='Text' Name='numcompte' >
</FIELDSET>
<FIELDSET style='width:800px'>
<LEGEND align='center'><I><B>(NB)AUCUN REMBOURSEMENT NE SERA POSSIBLE APRES VALIDATION DE VOTRE ACHAT</B></I></LEGEND>

JE SIGNE CE :<div>
<label for="jour"> </label>
<Select Name='jr' >

<OPTION Value='Lun' Name='jr'>LUNDI</OPTION>
<OPTION Value='Mar' Name='jr'>MARDI</OPTION>
<OPTION Value='Mer'Name='jr'>MERCREDI</OPTION>
<OPTION Value='Jeu' Name='jr'>JEUDI</OPTION>
<OPTION Value='Ven' Name='jr'>VENDREDI</OPTION>
<OPTION Value='Sam'Name='jr'>SAMEDI</OPTION>
<OPTION Value='Sam'Name='jr'>DIMANCHE</OPTION>

</div>
<div>
<label for="dat"> :</label>
<input type="date" id="dt" name="date">
</div>
</FIELDSET><br>
                                                   <INPUT Type='reset' Name='annuler' Value='Annuler'>    
<INPUT Type='submit' Name='envoyer' Value='Envoyer'>
</form>
</body>
</html>

1 réponse

jordane45 Messages postés 38138 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 17 avril 2024 4 649
19 juin 2018 à 14:42
Bonjour,

1 - Pour poster ton code sur le forum, merci de le faire en utilisant LES BALISES DE CODE
voir ici les explications : https://codes-sources.commentcamarche.net/faq/10686-le-nouveau-codes-sources-comment-ca-marche#balises-code

2 - ... tu ne nous dis pas quel est ton souci......
mais j'ai un pressentiment....
Ne serait-ce pas l'espace en trop dans l'attribut ACTION qui te pose problème ??
<form id='sbe' action=' moi_traitment.php' method='post' enctype='multipart/form-data'>
  • devant le moi_
0
marietode Messages postés 8 Date d'inscription mardi 19 juin 2018 Statut Membre Dernière intervention 22 juin 2018
19 juin 2018 à 16:04
merci,au fait j ai pas fini...mais merci bien
0