Code: Select all
<form action="disstudents.php" method="POST">
<select name="user_id"><option >select one</option>
<?php
require_once ('../mysql_connect1.php');
$query = "SELECT user_id,name from students";
$result = mysql_query ($query);
while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) {
echo '<option value="'.$row['user_id'].'">'.$row['name'].'</option>';
}
mysql_close();
?>
</select>
<input type="submit" value="Show Data!">
</form>localhost/disstudnets.php?uid=10;
with link that page is working fine
but what i want to do is from that combo box pass that uid to disstudents.php but it is not working
how can i do it
i want to open page(disstudents.php) taking uid from combo box which displays studnets name..
now it says missiong uid ..in disstudents.php
any help
thanks...
rami