Esta es la tercera parte, el archivo guardar va en otro mensaje:
Código PHP:
Ver originalecho(" <td>Cargo</td>");
echo(" <td><input type=text value=".chr(34).$cargo.chr(34)." name=cargo size=30 maxlength=40 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>");
echo("</tr>");
echo("<tr>");
echo(" <td>Celular</td>");
echo(" <td><input type=text value=".chr(34).$celular.chr(34)." name=celular size=12 maxlength=12 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>");
echo("</tr>");
$busqueda = 0;
$cont=1;
$busqueda = mysql_query("SELECT * FROM equipos_computacionales");
$Total=mysql_num_rows($busqueda);
if (($busqueda)>0){
echo "ingresa aca";
$ini=($Total+1);
}
if ($Total==0){
echo "No encuentra registro";
$ini=($Total+1);
}
?>
<form action="grabar.php"method="POST" name="form3">
<?
echo("<table border=1 width=100%>");
echo("<br>");
echo("<tr>");
echo("<td colspan='2' bgcolor='#00FFFF'><span class='Estilo1 Estilo6'>Claves del Sistema</span></td>");
echo("</tr>");
echo("<table border=1 width=100%>");
echo("<tr>");
echo("</tr>");
echo(" <td>e-Mail</td>");
echo(" <td><input type=text name=email size=20 maxlength=20 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>"); echo("</tr>");
echo(" <td>Clave Correo</td>");
echo(" <td><input type=text name=clave_correo size=30 maxlength=40 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>"); echo("</tr>");
echo("</table>");
echo("</tr>");
echo("<table border=1 width=100%>");
echo("<br>");
echo("<tr>");
echo("<td colspan='2' bgcolor='#00FFFF'><span class='Estilo1 Estilo6'>Plataforma</span></td>");
echo("</tr>");
echo("<table border=1 width=100%>");
echo("<tr>");
echo("</tr>");
echo("<tr>");
echo("<td>Nombre de Usuario</td>");
echo(" <td><input type=text name=nombre size=12 maxlength=12 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>"); echo("</tr>");
echo("<tr>");
echo(" <td>Contraseña</td>");
echo(" <td><input type=text name=contrasena size=12 maxlength=12 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>"); echo("</tr>");
echo("<tr>");
echo(" <td>Numero Unico</td>");
echo(" <td><input type=text name=num_unico size=30 maxlength=40 onkeypress=".chr(10)."return tabular(event,this)".chr(10)."></td>"); echo("</tr>");
echo("</table>");
echo("</tr>");
echo("<table border=1 width=100%>");
echo("<br>");
echo("<tr>");
echo("<td colspan='2' bgcolor='#00FFFF'><span class='Estilo1 Estilo6'>Equipos</span></td>");
echo("</tr>");
echo("<table border=1 width=100%>");
echo("<tr>");
echo("</tr>");
echo("<tr>");
echo("<td>Seleccione el Tipo de Equipo</td>");
echo("<td>");
?> <select name="$tipo_equipo" size="1">
<option value="PC" selected>PC</option>
<option value="NOTEBOOK">Notebook</option>
<option value="PANTALLA">Pantalla</option>
</select>
<?
echo("</td>");
echo("<tr>");
echo("<tr>");
echo(" <td>IP</td>");
echo(" <td><input type=text name=ip_equipo size=15 maxlength=15 onkeypress=".chr(15)."return tabular(event,this)".chr(15)."></td>"); echo("</tr>");
echo("<tr>");
echo("<tr>");
echo(" <td>Propiedad de:</td>");
echo("<td>");
?> <select name="$propiedad" size="1">
<option value="Curifor" selected>Curifor</option>
<option value="Personal">Personal</option>
</select>
<?
echo("</td>");
echo("<tr>");
echo(" <td valign='top'>Detalles</td>");
echo(" <td> "); ?>
<textarea name="$detalle" rows="100" cols="100" enabled>
</textarea>
<? echo "</td>";
echo "</tr>";
echo("</table>");
echo("<tr>");
echo("<br>");
echo("<table border=1 width=100%>");
echo("<tr>");
echo("<table border=1 width=100%>");
}
?>
<input type="submit" value="Guardar" onclick="location.href="grabar.php""">
</form>
</form>
</div>
</body>
</html>