************************************************** ******
<?php
extract($_GET, EXTR_SKIP);
extract($_POST, EXTR_SKIP);
$link=mysql_connect($SERVER_NAME,"webmaster","webm aster07");
if ($link)
{
echo "<table border='0'>\n";
echo "<form action='".$_SERVER['PHP_SELF']."' method='post'>\n";
echo "<tr>\n";
echo "<td bgcolor='#efefef'>\n";
echo "<b><font face='Arial, Helvetica, sans-serif' size='2' color='#000000'>Resultados por periodos</font></b>\n";
echo "</td>\n";
echo "<td bgcolor='#efefefe'>\n";
echo "<select sixe='1' name='periodo'>\n";
echo "<option select>---------------------</option>\n";
echo "<option value='periodo1'>periodo1</option>\n";
echo "</select>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<font face='Arial, Helvetica, sans-serif' size='-1' color='#000000'>Matrícula inicial</font>\n";
echo "</td>\n";
if ( $periodo==periodo1 )
{
mysql_select_db("jcbm",$link);
$sql="select matricula from respe where id='1'";
$result=mysql_query($sql,$link);
if ( $result )
{
while ($mrow=mysql_fetch_object($result) )
{
echo "<td align='center'>$mrow->matricula</td>\n";
}
}
}else{echo "Seleccione un periodo";}
echo "</tr>\n";
echo "</form>\n";
echo "</table>\n";
}
?>
*************************************************
El asunto es que cuando trato de seleccionar una opción del select, no me da la consulta.
Espero, gracias.
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)