Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/12/2011, 15:30
CWeeD
 
Fecha de Ingreso: octubre-2010
Mensajes: 136
Antigüedad: 13 años, 6 meses
Puntos: 4
Pregunta Simbolo "&" se corta en POST php!

Hola foreros! la situación es la siguiente, tengo un formulario en el que subo texto a una tabla en mysql texto que luego presento en otra página, pues este texto son object embed como este:
Código HTML:
<object width="426" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/l1hF-VS1bGs&feature=related"><param name="movie" value="http://www.youtube.com/v/l1hF-VS1bGs&feature=related" /></object> 
El problema es ke cuando doy enviar el texto este se me corta hasta el simbolo "&" y queda asi
Código HTML:
<object width="426" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/l1hF-VS1bGs
Este es el script que uso para postear el texto
Código PHP:
<?php


//$id = $_POST['id'];
$text1 $_GET['text1'];
$text2 $_GET['text2'];
$text3 $_GET['text3'];
$user $_GET["user"];
$banda $_GET["banda"];


require(
'conexion.php');


$sql "INSERT INTO `texto` (`video1`,`video2`,`video3`) VALUES ('$text1', '$text2', '$text3');";

mysql_query("SET NAMES utf8");
$result mysql_query($sql);

mysql_close($con);

?>
Necesito saber que tengo que agregar para que no me haga eso...GRACIAS
__________________
Ser o conocer ese es el dilema...