Anyone who knows how to pass a variable and its value in a select-box ? my code look like this:
$query_usr = queryDB("SELECT * FROM tsv_users",$link);
print ("<form method=POST action=$PHP_SELF?req_id=$rvar_id>");
print ("<select name=rvar_id>");
//List registered users
while ($usr_sql = mysql_fetch_array($query_usr)) {
$usr_id = $usr_sql['usr_secure_id'];
$usr_nick = $usr_sql['usr_nick'];
print ("<option value=$usr_id>$usr_nick</option>");
}
print ("</select>");
print ("<input type=submit name=submit value=Submit />");
print ("</form>");
When the user selects another user in the select-list, that specified user's info will be displayed. But it doesn't work. Any idées anyone ?