Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/10/2007, 20:09
lestatminiyo
 
Fecha de Ingreso: junio-2006
Mensajes: 84
Antigüedad: 18 años, 7 meses
Puntos: 1
otra duda php5

weno, con todo lo que pregunto creo que os habeis dado cuenta de que he migrado a php5

bien, tenia yo un formulario que manda dos variables

$query, $viser

y las mandaba a un archivo llamado buscar.php

el archivo simplemente dependiendo del valor del $viser, redireccionaba a un sitio o a otro...

en resumen:

este es el formulario html:
Código PHP:
 <form name="formulario" method="post" action="http://www.matussalen.com/buscar.php">
                    <
address>
                <
span style="font-style: normal"><font class="content"><input size="31" name="query" type="text"></font></span><span style="font-style: normal"><font class="content">
                        <
input value="Buscar" type="submit"><font face="Verdana" color="#C0C0C0"><span style="font-size: 8pt"><input type="radio" value="1" checked name="viser" style="font-weight: 700; color:#4C4C4C; background-color:#4C4C4C"></span><b><span style="font-size: 8pt">vídeos&nbsp;
                        </
span></b><span style="font-size: 8pt">
                        <
input type="radio" name="viser" value="2" style="font-weight: 700; color:#4C4C4C; background-color:#4C4C4C"></span><b><span style="font-size: 8pt">series </span></b><span style="font-size: 8pt">
                        <
input type="radio" name="viser" value="3" style="font-weight: 700; color:#4C4C4C; background-color:#4C4C4C"></span><b><span style="font-size: 8pt">películas </span></b><span style="font-size: 8pt">
                        <
input type="radio" name="viser" value="4" style="font-weight: 700; color:#4C4C4C; background-color:#4C4C4C"></span></font></font></span><b><span style="font-style: normal"><font face="Verdana" style="font-size: 8pt" color="#C0C0C0">televisión</font></span></b></address>
                            </
form
este es el buscar.php:
Código PHP:
<?
global $query$viser;


if (
$viser == "1") {
header("Location: ver.php?cat=Video&funcion=search&query=$query");
}
if (
$viser == "2") {
header("Location: ver.php?cat=serpe&funcion=search&query=$query");
}
if (
$viser == "3") {
header("Location: ver.php?cat=serpe&funcion=search&query=$query");
}
if (
$viser == "4") {
header("Location: ver.php?cat=tv&funcion=search&query=$query");
}
?>
porque el buscar.php se me queda sin respuesta, blanco, sin hacer nada?