Tema: codigo isset
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/12/2009, 11:15
Hallking
 
Fecha de Ingreso: febrero-2009
Mensajes: 188
Antigüedad: 15 años, 2 meses
Puntos: 1
Respuesta: codigo isset

gracias por tu ayuda pero no entendi mucho mira te mostrare mi codigo para q tu me ayudes con lo q tengo malo

Código PHP:
<?php
if(!isset($_POST["tip"])){
?>
<html>
    <head>
<title> Inscripción </title>
    </head>
<body>
<body bgcolor="asdfgj">

<TABLE BORDER="3" WIDTH="100%" HEIGHT="100%">
<TR>
<TD align="center" valign= "middle"> 
<form action="Datos Personales.php" method="POST">
<TABLE BORDER="2" WIDTH="450" HEIGHT="50">
<marquee behavior="alternate" WIDTH="500"> <h1> <font color="Red"> Complete  Este Formulario </font> </h1> </marquee>
<tr> <th colspan="2" > <h1> <blink> Registro Personal De Correo  </blink> </h1> </th> </tr>
<tr>
<td>
Nombre:<br>
Coreo Electronico:<br>
Clave<br>
Tipo del Coreo<br>
Lugar de Nacimiento:<br>
</td>
<td>
<input type="text" name="no"><BR>
<input type="text" name="co"><BR>
<input type="password" name= "cl"><br>
<select name="tip">
<option>Tipos de Coreos</option>
<option>Hotmail.com</option>
<option>Gmail</option>
<option>Yahooo</option>
</select><br>
<select name="lug">
<option>Paises</option>
<option>Republica Dominicana</option>
<option>España</option>
<option>Italia</option>
<option>Roma</option>
<option>Estados Unidos</option>
<option>Francia</option>
</select>
<br>
</td>
<tr>
<td>
<br>
<center>
<input type="submit">
</center>
</td>
<td>
<center>
<input type="reset">
</center>
</td></tr>
</td>
</tr>
</TABLE>
</form>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<?php
;}else{
$Nombre=$_POST["no"];
$Correo=$_POST["co"];
$Clave=$_POST["cl"];
$Tipo=$_POST["tip"];
$Lugar=$_POST["lu"];
echo
'
<html>
    <head>
<title> Inscripción </title>
    </head>
<body>
<TABLE BORDER="3" WIDTH="100%" HEIGHT="100%">
<TR>
<TD align="center" valign= "middle"> 
<form action="Datos Personales.php" method="POST">
<TABLE BORDER="0" WIDTH="450" HEIGHT="50">
<marquee behavior="alternate" WIDTH="500"> <h1> <font color="blue"> Tus Datos son </font> </h1> </marquee>
<tr> <th colspan="2" > <h3> <blink><font color="Green">Gracias por preferir este Sitio Web</font></blink> </h3> </th> </tr>
<tr>
<td>'
;
if(
$Tipo=="Hotmail.com"){echo $Nombre;
}
else{echo
'El coreo de '$Nombre' es ',$Correo'<br>
 Tu Contraseña es ' 
,$Clave=MD5($Clave), '.<br>
Gracias Por su Preferencia espero que disfrute sus Nuevo Coreo electrónico. 
'
;
echo 
"$Nombre";
;}
if(
$Lugar="Republica Dominicana"){$a=array("Una Lapto"=>"Una Lapto","Una Camara"=>"Una Camara","Un Celular"=>"Un Celular","MP4"=>"MP4","MP3"=>"MP3");
echo 
"Tu Premio es", (array_rand($a,1));
}

echo
'</td></tr>
</td>
</tr>
</TABLE>
</form>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>'
;
;}
?>