Bueno al lio...
Tengo un php con una serie de campos metidos es selects.....la idea es, en el nivel grupo, yo elijo "Documentos", entonces en el siguiente, tendria que salir solo lo relacionado con "Documentos"; ejemplo: Manuales, Guias.....Si elijo Manuales, pues en el siguiente, debira salir, programacion en C, programacion en php....
no se si me explico bien xDDDD
esa es la idea, haber si me podeis ayudar....aki s dejo un pedazo de codigo para ke os sea mas facil entenderlo xD
Código PHP:
<form action="Insert.php" name="NewEnlace" method="get">
<table>
<tr>
<td>
Group:
</td>
<td>
<input type="text" name="Grouptext" value="" maxlength="100" size="25" />
<select name="GroupSelec" >
<option value="" selected="selected">Nuevo</option>
<?php
$GroupSelec=mysql_query("SELECT DISTINCT(Tree.Group) FROM Tree",Connect())or die(mysql_error());
while ($RowGroupSelec = mysql_fetch_array($GroupSelec))
{
$GroupSele=$RowGroupSelec['Group'];
?><option value"<? echo $GroupSele?>"><? echo $GroupSele;?></option><?
}
?>
</select>
</td>
<td>
<font color="#FF0000"> (Obligatorio).</font>
</td>
</tr>
<tr>
<td >
Level01:
</td>
<td>
<input type="text" name="Level01Text" value="" maxlength="100" size="25" />
<select name="Level01Selec" >
<option value="" selected="selected">Nuevo o blanco</option>
<?php
$GroupSelec=mysql_query("SELECT DISTINCT(Level01) FROM Tree",Connect())or die(mysql_error());
while ($RowGroupSelec = mysql_fetch_array($GroupSelec))
{
$Sele=$RowGroupSelec['Level01'];
?><option value"<? echo $Sele?>"><? echo $Sele;?></option><?
}
?>
</select>
</td>
<td>
<font color="#FF0000"> (Obligatorio).</font>
</td>
</tr>
<tr>
<td>
Level02:
</td>
<td>
<input type="text" name="Level02Text" value="" maxlength="100" size="25" />
<select name="Level02Selec" >
<option value="" selected="selected">Nuevo o blanco</option>
<?php
$GroupSelec=mysql_query("SELECT DISTINCT(Level02) FROM Tree",Connect())or die(mysql_error());
while ($RowGroupSelec = mysql_fetch_array($GroupSelec))
{
$Sele=$RowGroupSelec['Level02'];
?><option value"<? echo $Sele?>"><? echo $Sele;?></option><?
}
?>
</select>
</td>
<td>
(Opcional).
</td>
</tr>
<tr>
<td>
Level03:
</td>
<td>
<input type="text" name="Level03Text" value="" maxlength="100" size="25" />
<select name="Level03Selec" >
<option value="" selected="selected">Nuevo o blanco</option>
<?php
$GroupSelec=mysql_query("SELECT DISTINCT(Level03) FROM Tree",Connect())or die(mysql_error());
while ($RowGroupSelec = mysql_fetch_array($GroupSelec))
{
$Sele=$RowGroupSelec['Level03'];
?><option value"<? echo $Sele?>"><? echo $Sele;?></option><?
}
?>
</select>
</td>
<td>
(Opcional).
</td>
</tr>
<tr>
<td>
Level04:
</td>
<td>
<input type="text" name="Level04Text" value="" maxlength="100" size="25" />
<select name="Level04Selec" >
<option value="" selected="selected">Nuevo o blanco</option>
<?php
$GroupSelec=mysql_query("SELECT DISTINCT(Level04) FROM Tree",Connect())or die(mysql_error());
while ($RowGroupSelec = mysql_fetch_array($GroupSelec))
{
$Sele=$RowGroupSelec['Level04'];
?><option value"<? echo $Sele?>"><? echo $Sele;?></option><?
}
?>
</select>
</td>