Hi
Im newbie in PHP
I know that i cant't do a onchange function in php to generate dynamic selects.
My problem is that i want to have 2 select boxes.
box1 is category
box 2 is subcategory
each subcategroy has its parent category
I wont to select the category ( ex people )in box 1 and want to see in box 2 ( ex Womens )
Can anybody give me a good example to do this in the same php-script ?
box1:
echo "<select size=1 name=kat>";
while (odbc_fetch_row($kategorie);
{
$kategorie = odbc_result($kategorie, 1);
}
echo "<option>$kategorie</option>";
echo "</select>";
box2:
echo "<select size=1 name=subkat>";
while (odbc_fetch_row($subkategorie);
{
$kategorie = odbc_result($subkategorie, 1);
}
echo "<option>$subkategorie</option>";
echo "</select>";
Im newbie in PHP
I know that i cant't do a onchange function in php to generate dynamic selects.
My problem is that i want to have 2 select boxes.
box1 is category
box 2 is subcategory
each subcategroy has its parent category
I wont to select the category ( ex people )in box 1 and want to see in box 2 ( ex Womens )
Can anybody give me a good example to do this in the same php-script ?
box1:
echo "<select size=1 name=kat>";
while (odbc_fetch_row($kategorie);
{
$kategorie = odbc_result($kategorie, 1);
}
echo "<option>$kategorie</option>";
echo "</select>";
box2:
echo "<select size=1 name=subkat>";
while (odbc_fetch_row($subkategorie);
{
$kategorie = odbc_result($subkategorie, 1);
}
echo "<option>$subkategorie</option>";
echo "</select>";