par
mmoi » 08 janv. 2006, 02:28
bonjour,
je fait une liste deroulante depuis mysql en PHP
je cherche a recuperer dans une variable la seletion,
<form method="post" action="menu.php">
<table border=2>
<tr><th align=middle>Sélectionner une option : </th></tr>
<tr><td align=center><select name="variable_choisi">Choissiez votre option:
<option selected value=""> ---------- Séléction ----------
<?
include 'Connection_cinema.php';
$sql="SELECT intGenre FROM Genre";
$optio=mysql_query($sql);
while($row = mysql_fetch_row($optio)) {
print "\t\t<option>".($row[0])."\n";
}
?>
bonjour,
je fait une liste deroulante depuis mysql en PHP
je cherche a recuperer dans une variable la seletion,
[php]
<form method="post" action="menu.php">
<table border=2>
<tr><th align=middle>Sélectionner une option : </th></tr>
<tr><td align=center><select name="variable_choisi">Choissiez votre option:
<option selected value=""> ---------- Séléction ----------
<?
include 'Connection_cinema.php';
$sql="SELECT intGenre FROM Genre";
$optio=mysql_query($sql);
while($row = mysql_fetch_row($optio)) {
print "\t\t<option>".($row[0])."\n";
}
?>
[/php]