Código:
Espero que me puedan ayudar con mi duda...desde ya muchas gracias <html> <head> <title>Datos</title> <script language="javascript"> function grabar(){ if($this->con->conectar()==true){ return mysql_query("INSERT INTO horas (inicio) VALUES (NOW())"); } } </script> </head> <body onLoad="grabar()"> <link rel="stylesheet" type="text/css" href="busquedaate.css"> <script type="text/javascript" src="busquedaate.js"></script> <script language="JavaScript"> function Abrir_ventana (pagina) { var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=508, height=300, top=85, left=140, Text-align=left"; window.open(pagina,"",opciones); } </script> <script type="text/javascript"> setActiveStyleSheet(document.getElementById("defaultTheme"), "Aqua"); </script> <p> </p> <table width="400" height="76" border="1"> <tr> <td width="57" height="31"><div align="center">Rut</div></td> <td width="158"><form id="form1" name="form1" method="post"> <label> <input name="txtrut" type="text" id="txtrut" /> </label> </form></td> <td width="54"><div align="center">Nombre</div></td> <td width="158"><form id="form2" name="form2" method="post" action=""> <label> <input name="txtnom" type="text" id="txtnom" /> </label> </form></td> <td width="76"><div align="center">Consultante</div></td> <td width="158"><div id="demo" align="left" style="width:100px;"> <div id="demoDer"> <div> <input name="text" type="text" class="input" id="input_2" onFocus="if(document.getElementById('lista').childNodes[0]!=null && this.value!='') { filtraLista(this.value); formateaLista(this.value); reiniciaSeleccion(); document.getElementById('lista').style.display='block'; }" onBlur="if(v==1) document.getElementById('lista').style.display='none';" onKeyUp="if(navegaTeclado(event)==1) { clearTimeout(ultimoIdentificador); ultimoIdentificador=setTimeout('rellenaLista()', 1000); }"> </div></td> <div id="lista" onMouseOut="v=1;" onMouseOver="v=0;"></div> <td width="42"><div align="center"> <form name="form3" method="post" action=""> <a href="javascript:Abrir_ventana('consultante.php')"><font size="1" face="Verdana"><img src="img/add.png" width="16" height="16"><a href="consultante.php"></a> </form> </div></td> </tr> <tr> <td height="37"><div align="center">Telefono</div></td> <td><form id="form4" name="form4" method="post" action=""> <label> <input name="txtfono" type="text" id="txtfono" /> </label> </form></td> <td><div align="center">Ciudad</div></td> <td><form id="form5" name="form5" method="post" action=""> <label> <input name="txtciu" type="text" id="txtciu" /> </label> </form></td> <td><div align="center">Correo</div></td> <td><input type="text" name="textfield6" /></td> </tr> </table> <p><a href="javascript:Abrir_ventana('busqueda.php')"><font size="1" face="Verdana"><img src="search.png" width="48" height="40"></font></a><a href="busqueda.php"></a></p> <table width="200" border="1"> <tr> <td height="45" valign="top"><div align="left">Servidor</div></td> <td><label> <input type="text" name="textfield" /> </label></td> </tr> </table> <p> </p> <table width="1005" border="1"> <tr> <td width="121">Sistema Operativo </td> <td width="144"><form id="form8" name="form8" method="post" action=""> <label> <input type="text" name="textfield2" /> </label> </form></td> <td width="111"><form id="form9" name="form9" method="post" action=""> <label>Disco duro </label> </form></td> <td width="144"><form id="form10" name="form10" method="post" action=""> <label> <input type="text" name="textfield3" /> </label> </form></td> <td width="54">Ram</td> <td width="146"><form id="form12" name="form12" method="post" action=""> <label> <input type="text" name="textfield5" /> </label> </form></td> <td width="85" valign="top">Procesador</td> <td width="148"><form id="form13" name="form13" method="post" action=""> <label> <input type="text" name="textfield7" /> </label> </form></td> </tr> </table> <p> </p> </body> </html>