Get varaible from a <select>



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 !

.



Relevant Pages

  • Re: VS2008 - IE says that it cant show page
    ... I have just installed VS2008 Standard Ed. in a machine that already has ... When I run a web page built with VS2008, ... keeps displaying the same error. ... Exactly what type of web project did you create, and what types of controls are on the page that will not display? ...
    (microsoft.public.vsnet.general)
  • Some Forms Not Displaying
    ... Some forms are not displaying in a db I set up, but haven't seen for a while. ... It is used by the office I built it for. ... duplicating itself, but they were unable to pay me to look into it. ... When I checked the database's properties, the Statistics tab showed that the ...
    (microsoft.public.access.forms)
  • Re: Using VBA to replace text
    ... I built a function that tests for the TitleMaster and ... returns a "No" if there is none after displaying the presentation ... Prev by Date: ...
    (microsoft.public.powerpoint)
  • Linux boot
    ... i just updated win2003 server and after that the Linux boot option not ... displaying.. ... plz tell me solution ...
    (Fedora)
  • Re: Indian Railway Guide
    ... Europe.Remember most of the rail network in india was built during ... British rule. ... Your views plz ... Prev by Date: ...
    (rec.travel.europe)