Hi everybody, I have a little problem with drop down menus. I have a PHP
page in which I extract some categories (from a database). I put those
categories in a drop down menu without problems. I would like that when
a category is chosen, the entire page should be reloaded without the
pression of any "submit" button, and should appear a new drop down menu.
The main problem is the reloading of the page as it appears not to work
if, after OPTION VALUE, I put the name of the same page in which there
is the forum (entrate_in.php). Infact it say "page not found" while it
works perfectly if I put the name of a different php page... how to
resolve this problem?
<?
echo "<tr>";
echo "<td width='20%' bgcolor='#C0C0C0' align='right'> <p
align='right'>Tipo</td>";
echo "<td width='80%'> <select ONCHANGE='location =
this.options[this.selectedIndex].value;' name='tipo' id='tipo'>";
$query = mysql_query("SELECT * FROM categorie ORDER BY categoria");
$numrows = mysql_num_rows($query);
for ($i=0; $i<$numrows; $i++)
{
$row = mysql_fetch_row($query);
list($id, $categ, $col1, $col2, $col3) = $row;
echo "<option value=\"entrate_in.php?Nome=$categ\">$categ</option>";}
echo "</select></td>";
echo "</tr>";?>
THANK YOU!