Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/12/2010, 11:44
alanfcarta
 
Fecha de Ingreso: noviembre-2010
Mensajes: 33
Antigüedad: 13 años, 5 meses
Puntos: 1
Respuesta: Parámetros entre paginas

una pregunta mas, como hago para configurar el .htaccess para que me deje poner etiquetas php en un html?

Y DENTRO DE LA MISMA PAGINA, COMO HAGO PARA QUE DESDE UNA ETIQUETA PHP LE DEVUELVA A LA MISMA PAGINA UN PARAMETRO?



<head>

<title>Reproductor</title>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<link rel="stylesheet" type="text/css" href="estilo.css">

</head>


<h1>Demo</h1>
<embed type="application/x-vlc-plugin" id="video1"
autoplay="yes" loop="yes" width="400" height="300"
target=" AQUÍ ES DONDE NECESITO QUE ME DEVUELVA EL PARÁMETRO" />
<br>
<?php
$num_video=$_GET["n"];
$xml = file_get_contents("videosw.xml");
preg_match_all('/<title>(.*)<\/title>/', $xml, $resultado);
preg_match_all('/<refer>(.*)<\/refer>/', $xml, $refer);
preg_match_all('/<category>(.*)<\/category>/', $xml, $categoria);
preg_match_all('/<description>(.*)<\/description>/', $xml, $descripcion);

echo("Titulo:");
echo($resultado[1][$num_video]);
echo("<br>");
echo("refer:");
echo($refer[1][$num_video]);
echo("<br>");
echo("categoria:");
echo( $categoria[1][$num_video]);
echo("<br>");
echo("descripcion:");
echo($descripcion[1][$num_video]);
echo("<br>");

echo($num_video)


?>
<br>
<!-- nota: se prefiere la utilización de eventos con jQuery antes de el atributo onclick -->
<a href="javascript:;" onclick='document.video1.play()'>Play video1</a>
<a href="javascript:;" onclick='document.video1.pause()'>Pause video1</a>
<a href="javascript:;" onclick='document.video1.stop()'>Stop video1</a>
<a href="javascript:;" onclick='document.video1.fullscreen()'>Fullscreen</a>
</body>
</html>

Última edición por alanfcarta; 24/12/2010 a las 12:04 Razón: OTRA PREGUNTA