Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/10/2004, 09:36
bananas
 
Fecha de Ingreso: junio-2004
Ubicación: ORENSE
Mensajes: 258
Antigüedad: 19 años, 10 meses
Puntos: 0
1.php

1.php

<?
session_start();
?>
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
if($_GET['status']==1){
?>
<form name="alta_inmobiliaria" method="POST" action="2.php">
<p>nombre_empresa
<input type="text" name="nombre_empresa">
<br>
direccion
<input type="text" name="direccion">
<br>
cif_inmobiliaria
<input type="text" name="cif_inmobiliaria">
<br>
pais
<input type="text" name="pais">
<br>
provincia
<input type="text" name="provincia">
<br>
localidad
<input type="text" name="localidad">
<br>
codigo_postal
<input type="text" name="codigo_postal">
<br>
telefono
<input type="text" name="telefono">
<br>
fax
<input type="text" name="fax">
<br>
email
<input type="text" name="email">
<br>
login
<input type="text" name="login">
<br>
password
<input type="text" name="password">
<br>
confirmpass
<input type="text" name="confirmpass">
</p>
<p>&nbsp;</p>
<p>
<input type="SUBMIT" name="Submit" value="Enviar">
</p>
</form>
<?
}
if($_GET['status']==2){
?>
<form name="alta_inmobiliaria" method="POST" action="2.php">
<p>nombre_empresa
<input type="text" name="nombre_empresa" value="<?echo $s_nombre_empresa?>"><?echo($error_nombre_empresa) ?>
<br>
direccion
<input type="text" name="direccion" value="<?echo $s_direccion?>">
<br>
cif_inmobiliaria
<input type="text" name="cif_inmobiliaria" value="<?echo $s_cif_inmobiliaria?>"><?echo($error_cif_inmobilia ria)?>
<br>
pais
<input type="text" name="pais" value="<?echo $s_pais?>"><?echo($error_pais)?>
<br>
provincia
<input type="text" name="provincia" value="<?echo $s_provincia?>"><?echo($error_provincia)?>
<br>
localidad
<input type="text" name="localidad" value="<?echo $s_localidad?>"><?echo($error_localidad)?>
<br>
codigo_postal
<input type="text" name="codigo_postal" value="<?echo $s_codigo_postal?>"><?echo($error_codigo_postal)?>
<br>
telefono
<input type="text" name="telefono" value="<?echo $s_telefono?>"><?echo($error_telefono)?>
<br>
fax
<input type="text" name="fax" value="<?echo $s_fax?>"><?echo($error_fax)?>
<br>
email
<input type="text" name="email" value="<?echo $s_email?>">
<br>
login
<input type="text" name="login" value="<?echo $s_login?>">
<br>
password
<input type="text" name="password" value="<?echo $s_password?>">
<br>
confirmpass
<input type="text" name="confirmpass" value="<?echo $s_confirmpass?>"><?echo($error_confirmpass)?>
</p>
<p>&nbsp;</p>
<p>
<input type="SUBMIT" name="Submit" value="Enviar">
</p>
</form>
<?
if(!empty($error_nulos)){
?>
<script>
alert('campos vacios');
</script>
<?
}
if(!empty($error_cif_existe)){
?>
<script>
alert('cif existente');
</script>
<?
}
if(!empty($error_login_existe)){
?>
<script>
alert('login y password existentes');
</script>
<?
}


?>

<?
}
?>

</body>
</html>