Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/05/2010, 13:34
Dani1
 
Fecha de Ingreso: noviembre-2008
Mensajes: 20
Antigüedad: 15 años, 5 meses
Puntos: 0
Pregunta problema con redireccion (sintaxis)

Hola lo que queria yo era una redirección a eleccion del usuario en php había generado este código pero no se donde esta el fallo

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>Documento sin t&iacute;tulo</title>
</
head>

<
body>
<
form action="Untitled-9.php" method="post" id=”formulario”>
Link: <input type="text" name="link" id="link" />
<
input type="submit" value="Redirigir" name="Redirigir" id="Redirigir" />
</
body>
</
html
ESTA LA PAG DEL EL LINK QUE QUIERAS Y MEDIANTE EL METODO POST ME LO ENVIABA A ESTA PAGINA

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<? 
$_GET
['link']= "$link"
header(localitation$link); 

 
exit;  
?> 


</body>
</html>
Pero al subirlo a mi web me da este error :

syntax error, unexpected T_STRING on line 11

¿Donde está el fallo?