Hola copañeros este es mi codigo y lo que pasa con el que no me esta haciendo el submit para que me aumente el valor de $inicio y me entre en el if para poder mostrar los valores que tengo ahí dentro.
Código HTML:
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Captura de Presupuesto</title>
<link type="text/css" rel="stylesheet" href="style.css">
</head>
<body>
<?php
echo "<center>";
echo $inicio; //aqui imprimo inicio para ver si asignoel nuevo valor
echo "<div class=\"informacion\">";
echo "<h3>PRESUPUESTO</h3>";
echo "</div>";
echo "</center>";
?>
<br>
<br>
<form method="post" name="frmadprespro" action="../programa/index.php">
<table width="100%">
<tr>
<td>
Sucursal:
</td>
<td>
<select name= "slsucursal" style="width:250" onblur="CONSULTA('frmadprespro')">
<option></option>
<option>Armenia</option>
</select>
</td>
</tr>
</table>
<br>
<?php
if ($inicio == 1) //begin de if $inicio == 1 en comienzo tabla
{
?>
<table width="100%">
<tr>
<td style="border:none" align="center" bgcolor="">
<font size="3">
#
</font>
</td>
<td colspan="2" style="border:none" align="center" bgcolor="">
<font size="3">
Producto
</font>
</td>
<td style="border:none" align="center" bgcolor="">
<font size="3">
Unidad
</font>
</td>
<td style="border:none" align="center" bgcolor="">
<font size="3">
Valor
</font>
</td>
<?php
} //end if $inicio == 1 en el comienzo de la tabla
?>
<input type="hidden" name="pasa1" value="0">
<input type="hidden" name="inicio" value="0">
</body>
</form>
<script>
function CONSULTA(form)
{
frm.inicio.value = 1;
alert(frm.inicio.value);
document.forms[form].submit();
}
</script>
</html>