hey,
With the following code is make a form with a combobox(values from db). When i select a value in it, he reloads the page and creates a second one. when i select something in this one, he has to show me all the images that fullfil with the two selected options.
the problem is that when het reloads the page, he forgets the first selected value, when filling the second combobox.
can someone help me please?
greetz,
beta!
---------------------------------- foto_show.php---------------------------
.....................
$result = mysql_query( "SELECT subject FROM pictures_show" );
echo "
<form method=post action=foto_show.php>
<table>
<tr>
<select name=subjectshow size=5 onChange=submit(); return true>";
while( $row = mysql_fetch_array( $result ) )
{
echo "
<option value={$row[ 'subject' ]}>{$row[ 'subject' ]}</option>";
}
echo "
</select>
</tr>";
if( isset( $subjectshow ))
{
$subjectshow = trim( $subjectshow );
if( strlen( $subjectshow ) == 1 ) $subjectshow = "";
if( $subjectshow != "" )
{
$result = mysql_query("SELECT date FROM pictures_show WHERE subject='$subjectshow'");
echo "
..................