Ver Mensaje Individual
  #10 (permalink)  
Antiguo 13/02/2014, 15:31
jesus_spanishteacher
 
Fecha de Ingreso: septiembre-2013
Mensajes: 76
Antigüedad: 10 años, 7 meses
Puntos: 0
Respuesta: form con código php

Bueno probe con está opción y tampoco me da ninguna respuesta, al pulsar comprobar, tras rellenar los inputs; alguien tiene alguna solución o correción definitiva??, graciasss.



<form method="post" name="esquema" action="esquema.php">
<input type="text" name="x1" align="center" >
<input type="text" name="x2" align="center" >
<input type="text" name="x3" align="center" >
<input type="text" name="x4" align="center" >


<?php
if (isset($_POST['x1']) &&
isset($_POST['x2']) &&
isset($_POST['x3']) &&
isset($_POST['x4']) )

{
$x1 = $_POST['x1'];
$x2 = $_POST['x2'];
$x3 = $_POST['x3'];
$x4 = $_POST['x4'];
$y1 = "si";
$y2 = "si";
$y3 = "no";
$y4 = "no";
if
($y1 == $x1)
($y2 == $x2);
($y3 == $x3);
($y4 == $x4);
{
echo "La seleccion es correcta" ;
} else {echo "La selección es incorrecta" ;}


?>


<div id="boton"> <input type="submit" value="Comprobar" align="center"> </form> </div>