Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/02/2003, 22:29
Avatar de Reynier
Reynier
 
Fecha de Ingreso: noviembre-2002
Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 21 años, 5 meses
Puntos: 1
Duda HTML y PHP

Hola:
tengo un formulario HTML para registrar usuarios en mi web pero no se como vincularlo para que me vaya luego a un formulario de confirmación y después cuando le de click al botón enviar sea que me inserte los datos en la BAsE de Datos. El código del Form es este
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Registro de Nuevos Usuarios</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="../estilos/ujc.css" rel="stylesheet" type="text/css">
</head>

<body>

<div id="popup" style="position:absolute; left:10; top:10; width:408px; height:448px; z-index:1">
<form action="" method="post" name="registro" id="registro">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="formulario">
<tr>
<td colspan="3"><div align="right"><img src="../images/registro.jpg" width="301" height="74"></div></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="3"><div align="center"><font color="#003366" size="3" face="Tahoma"><em><strong>Registro
de Nuevos Usuarios</strong></em></font></div></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="31%"><font size="2" face="Tahoma">Nombre<font size="1"><strong>(*)</strong></font>:</font></td>
<td width="35%"><input name="nombre" type="text" id="nombre"></td>
<td width="34%"><input name="verifica" type="submit" id="verifica" value="Verificar"></td>
</tr>
<tr>
<td><font size="2" face="Tahoma">Apellidos<font size="1"><strong>(*)</strong></font>:</font></td>
<td colspan="2"><input name="apellidos" type="text" id="apellidos"></td>
</tr>
<tr>
<td><font size="2" face="Tahoma">E-Mail<font size="1"><strong>(*)</strong></font>:</font></td>
<td colspan="2"><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td><font size="2" face="Tahoma">Sexo:</font></td>
<td colspan="2"><p>
<label>
<input type="radio" name="sexo" value="opción">
<font size="2" face="Tahoma">Masculino</font></label>
<font size="2" face="Tahoma">
<label>
<input type="radio" name="sexo" value="opción">
Femenino</label>
</font><br>
</p></td>
</tr>
<tr>
<td><font size="2" face="Tahoma">Ocupaci&oacute;n<font size="1"><strong>(*)</strong></font>:</font></td>
<td colspan="2"><font size="2" face="Tahoma">
<select name="Ocupacion" size="1" id="select2">
<option>Estudiante</option>
<option>Otro usuario</option>
</select>
</font></td>
</tr>
<tr>
<td height="21"><font size="2" face="Tahoma">Login<font size="1"><strong>(*)</strong></font>:</font></td>
<td colspan="2"><input type="text" name="textfield4"></td>
</tr>
<tr>
<td><font size="2" face="Tahoma">Password<font size="1"><strong>(*)</strong></font>:</font></td>
<td colspan="2"><input type="password" name="textfield5"></td>
</tr>
<tr>
<td><font size="2" face="Tahoma">Repetir password<font size="1"><strong>(*)</strong></font>:</font></td>
<td colspan="2"><input type="password" name="textfield6"></td>
</tr>
<tr>
<td><font size="2" face="Tahoma">Telefono:</font></td>
<td colspan="2"><input type="text" name="textfield7"></td>
</tr>
<tr>
<td><font size="2" face="Tahoma">Provincia:</font></td>
<td colspan="2"><font size="2" face="Tahoma">
<select name="provincia" size="1" id="select">
<option>Pinar del R&iacute;o</option>
<option>La Habana</option>
<option>Ciudad Habana</option>
<option>Matanzas</option>
<option>Cienfuegos</option>
<option>Villa Clara</option>
<option>Sanct&iacute; Sp&iacute;ritus</option>
<option>Ciego de &Aacute;vila</option>
<option>Camag&uuml;ey</option>
<option>Las Tunas</option>
<option>Holgu&iacute;n</option>
<option>Granma</option>
<option>Santiago de Cuba</option>
<option>Guant&aacute;namo</option>
<option>Isla de la Juventud</option>
</select>
</font></td>
</tr>
<tr>
<td><font size="2" face="Tahoma">C&oacute;digo Postal:</font></td>
<td colspan="2"><input type="text" name="textfield8"></td>
</tr>
<tr>
<td valign="top"><font size="2" face="Tahoma">Direcci&oacute;n<font size="1"><strong>(*)</strong></font>:</font></td>
<td colspan="2"><textarea name="textarea"></textarea></td>
</tr>
<tr>
<td valign="top">
<div align="justify"><font size="2" face="Tahoma">Motivos por los que se registro
en el sitio<font size="1"><strong>(*)</strong></font>:</font></div></td>
<td colspan="2"><textarea name="textarea2"></textarea></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="3"><div align="center">
<input name="registro" type="submit" id="registro" value="Registrarme !!!!">
<input name="borra" type="reset" id="borra" value="Borrar Datos">
</div></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="3"><div align="center"></div></td>
</tr>
<tr>
<td colspan="3" class="formulario"><div align="center"><font color="#FF0000" size="-2" face="Tahoma"><strong>Nota
Importante: Los campos que contienen el s&iacute;mbolo (*) son obligatorios
y es necesario que los llenes.</strong></font></div></td>
</tr>
<tr>
<td colspan="3" class="formulario">&nbsp;</td>
</tr>
<tr>
<td colspan="3" class="formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="termsuse">
<td width="53%"> <div align="center"><a href="#"><font face="Tahoma">Terminos
y Condiciones del uso del Cluster</font></a></div></td>
<td width="24%"><font face="Tahoma">P&aacute;gina Principal</font></td>
<td width="23%"><a href="javascript:window.close()"><font size="1" face="Tahoma">Cerrar
Ventana</font></a></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</body>
</html>

NOTA IMPORTANTE: Disculpen si los molesto mucho pero es que no se nada de PHP y tengo que terminar un proyecto urgente para el lunes ¿Que les parece?
Otra cosa como hago para cuando le cambie la opcion al listbox que dice estudiantes y otros ususrios me alterne entre dos formularios difrerentes.
Gracias ante todo
__________________
Ing. Reynier Pérez Mira