Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/03/2011, 16:26
Inetero
 
Fecha de Ingreso: marzo-2011
Ubicación: Por ahí.
Mensajes: 4
Antigüedad: 13 años, 1 mes
Puntos: 0
Información que error tengo? php

Alguien me podria decir si tengo algo mal o es algo de la web.
Código PHP:
<html> 
<head>
 <title>Inetero</title></head>
<body>
<form action="todojunto.php" method="post">
  <p>Hombre
    <input type="radio" name="sexo" value="0">
  Mujer
  <input type="radio" name="sexo" value="1">
  </p>
  <p>
    <input type="text" name="nombre" >
    <input type="submit" name="submitbutton" value="probar">
    </p>
</form></p>
<?php 
if (isset($_POST['sexo']) && isset($_POST['nombre']) && $_POST['nombre'] != "") {
if (
$_POST['sexo'] == 0) {
echo 
"Hola Sr. ";
} else {
echo 
"Hola Sra. ";
}
echo 
"<b>{$_POST['nombre']}</b> bienvenido a la web.";
} else {
echo 
"<b>Porfavor rellena todos los campos.</b>";
} else {
if (isset(
$_POST['submitbutton'])) {
echo 
"<b>Porfavor rellena todos los campos.</b>";
}
}
?>
</p>
</body>
</html>