Ver Mensaje Individual
  #6 (permalink)  
Antiguo 18/03/2015, 13:39
devil65
 
Fecha de Ingreso: marzo-2015
Mensajes: 184
Antigüedad: 9 años, 10 meses
Puntos: 3
Respuesta: error codigo else en php

este es el codigo guardado como reporte1.php
<!DOCTYPE HTML>
<html lang "es">
<head>
<meta charset="UTF-8">
<title>Reporte Para Pc</title>
<link rel="stylesheet" type="text/css" href="reporte1.css">

</body>
<body style="background: #000000">
<div class="textbox">
<font color="white">
<h3> <p id="texto">Reporte Técnico Para Pc.</p> </h3>
</font>
</div>


<div id="formulario">

<div id="opcion">

<form name="form1" method="Get" action="redireccion.php">


<select name="lista1">
<option selected="selected">Empresa</option>
<option selected="selected">Hogar</option>
<input type="submit"/>
</select>
</form>
<br>
</div>
</body>
</html>

y este el el codigo guardado como redireccion.php

<?php

$palabra1 = $_GET["Hogar"];
$palabra2 = $_GET["Empresa"];


if ($palabra1 == $Hogar)
header ("location: portada.html");


else ($palabra2 == $Empresa)
header ("location: reporte3.html");

?>

si necesitas algo mas me avisa vale