Hey,
Thanks for the reply, I have tried with the code you have suggested like so:-
PHP Code:
<?php
include ("conn.php");
$catsql = "SELECT * FROM threads";
$result = mysql_query($catsql);
$options="";
while ($row=mysql_fetch_array($result))
{
$thread_id=$row["thread_id"];
$thread_name=$row["thread_name"];
$options.="<option value=\"$cat_id\">".$thread_name."</option>";
}
echo "<select name='thing' onchange=\"window.open('posts.php?thread_id=" . $row['thread_id'] . "&thread_name=" . urlencode( $row['thread_name'] ). "' , 'newLocation')\">";
echo '<option value="0">Choose</option>';
echo "$options";
echo "</select>";
?>
When i select something i still see blank values in the querystring. However if i put the Select in the "While" statement it works but not properly because it repeats the number of rows from the database..
How can i make this work?
Regards
Bookmarks