Bonjour tous le monde,
Debutant en php,
J'ai réussi à me créer un formulaire avec une base de donnée Mysql et un serveur wab avec Easyphp, a partir de mon formulaire je me cnnecte avec ma bdd et tout matche normal avec de champs simple mais qD j'ai ajouté un MENU deroulante, jai eu des erreurs au niveau du type des champs,
si qq pourra m'aider
merci d'avance pour votre aide
voici mon code
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
....
GetSQLValueString($_POST['NumAdmin'], "int"),
GetSQLValueString($_POST['login'], "text"),
GetSQLValueString($_POST['Discipline'], "text"),
GetSQLValueString($_POST['NomCompagnie'], "text"),
GetSQLValueString($_POST['nom'], "text"),
GetSQLValueString($_POST['prenom'], "text"),
GetSQLValueString($_POST['fonction'], "text"),
....
 
<form method="post" name="form1" action="<?php echo $editFormAction; ?>">
<table align="center">
<tr valign="baseline">
..
<tr valign="baseline">
<td nowrap align="right"><div align="left">Vous &ecirc;tes</div></td>
<td><select name="Discipline" >
<option selected value="">Choisir votre Discipline</option>
<option value="choix1">choix1</option>
..
<?php
do { 
?><option value="<?php echo $row_Recordset1['Discipline']?>"><?php echo $row_Recordset1['NumAdmin']?></option><?php
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
$rows = mysql_num_rows($Recordset1);
if($rows > 0) {
mysql_data_seek($Recordset1, 0);
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
}
?>