Get varaible from a <select>
- From: "Googlegroups" <mpbeaulieu@xxxxxxxxx>
- Date: 14 Dec 2005 13:09:49 -0800
im displaying a <select> built with my db
$query1 = "select Distinct(question) FROM sondage ORDER BY id";
$result1 = mysql_query($query1);
echo "<br><select name='question_choisi'>";
while ($val = mysql_fetch_array($result1))
{
echo "<option>$val[question]</option>";
}
echo "</select>";
//Form and bouton pour choisir la question ou inseré
echo "<br>";
echo "<form method='GET' action='sondage.php'>";
echo "<input type='submit' name ='action' value='resultats'>";
I want to get the value of <select name='question_choisi'>
I tought of something like
echo $_GET["question_choisi"];
or
$question_choisi = $_GET["question_choisi"];
echo $question_choisi;
But nothing seems to work. Need help on that easy one plz !
.
- Follow-Ups:
- Re: Get varaible from a <select>
- From: Ian B
- Re: Get varaible from a <select>
- Prev by Date: PDO php 5.1.1 winxp
- Next by Date: Re: Get varaible from a <select>
- Previous by thread: PDO php 5.1.1 winxp
- Next by thread: Re: Get varaible from a <select>
- Index(es):
Relevant Pages
|