este es el codigo del formulario:
Código PHP:
Ver original
<?php $editFormAction = $_SERVER['PHP_SELF']; } ?> <?php $insertSQL = sprintf("INSERT INTO inconcistencias (FECHA, DIRECCION, DEPARTAMENTO, SECCION, FUNCIONARIO) VALUES (NOW(), %s, %s, %s, %s)", GetSQLValueString($_POST['DIRECCION'], "text"), GetSQLValueString($_POST['DEPART'], "text"), GetSQLValueString($_POST['SECCION'], "text"), GetSQLValueString($_POST['FUNCIONARIO'], "text")); $insertGoTo = "Inconsistencias.php"; $insertGoTo .= $_SERVER['QUERY_STRING']; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- InstanceBegin template="/Templates/BasePrincipal.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Ususarios del Sistema SARA.</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable --> <link href="/SARA_WEB/estilo/principal.css" rel="stylesheet" type="text/css" /> </head> <body> <!-- DO NOT MOVE! The following AllWebMenus linking code section must always be placed right AFTER the BODY tag--> <!-- ******** BEGIN ALLWEBMENUS CODE FOR menu ******** --> <script type='text/javascript'>var MenuLinkedBy='AllWebMenus [4]',awmMenuName='menu',awmBN='DW';awmAltUrl='';</script> <script charset='UTF-8' src='menu_sara/menu.js' type='text/javascript'></script> <script type='text/javascript'>awmBuildMenu();</script> <!-- ******** END ALLWEBMENUS CODE FOR menu ******** --> <div class="header"> <div class="headerinterior"> <?php include("includes/cabecera.php"); ?> <p> </p> </div> </div> <!-- end .header --> <!-------------------------------------------------------------> <!--------------------SUBCONTAINER--------------------------------> <!-------------------------------------------------------------> <div class="subcontenedor"> <div class="sidebar1"> <table width="236" height="59" > <tr> <td width="236" height="53"><span id='awmAnchor-menu'> </span></td> </tr> </table> <p></p> <p></p> </div> <!-- end .sidebar1 --> <!-------------------------------------------------------------> <!--------------------CONTTENT--------------------------------> <!-------------------------------------------------------------> <div class="content"> <!-- InstanceBeginEditable name="Contenido" --> <h1><strong>Análisis de Inconsistencias del Sistema</strong></h1> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="otros" --> <p>Paso 1: Crear un Nuevo Análisis.</p> <form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2"> <table width="382" align="center"> <tr valign="baseline"> <td nowrap="nowrap" align="right">Dirección:</td> <td> <select name="DIRECCION" id="DIRECCION" onchange="llamarAjaxGETpro()"> <option>seleccione una Dirección.</option> <?php echo'<option value="'.$f['DIRECCION'].'">'.$f['DIRECCION'].' '.$f['DETALLE'].'</option>'; } ?> </select> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right">Departamento:</td> <td> <div id="pro" style="width:150px; float:left"><span id="spryselect4"> <select name="DEPART" disabled="disabled" id="DEPTO"> <option>seleccione un Departamento</option> </select> </div> </td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right">Sección:</td> <td> <div id="dis" style="width:150px; float:left"> <select name="SECCION" id="Sec" disabled="disabled"> <option>seleccione una Sección</option> </select> </div> </td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right">Funcionario:</td> <td> <div id="esp" style="width:150px; float:left"> <select name="FUNCIONARIO" id="FUNCIONARIO" disabled="disabled"> <option>seleccione un Funcionario</option> </select> </div> </td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right"> </td> <td><input type="submit" value="Crear Analisis" /></td> </tr> </table> <input type="hidden" name="MM_insert" value="form2" /> </form> <!-- InstanceEndEditable --></div> <!-- end .content --> </div> <!-- end .subcontenedor --> <!-------------------------------------------------------------> <!--------------------FOOTER-----------------------------------> <!-------------------------------------------------------------> <div class="footer"> <p>pie de pagina</p> </div> <!-- end .footer --> <!-------------------------------------------------------------> <!-------------------------------------------------------------> <!-------------------------------------------------------------> </div> <!-- end .container --> </body> <!-- InstanceEnd --></html>