Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何为html链接插入变量?_Php_Html - Fatal编程技术网

Php 如何为html链接插入变量?

Php 如何为html链接插入变量?,php,html,Php,Html,这是我的档案: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); $variabile_get = $_GET['var']; ?> <h

这是我的档案:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
   error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
   $variabile_get = $_GET['var'];
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <meta name="author" content="Amin Developer!" />
  <title>Untitled 1</title>
 </head>
 <body>
 <p>
  <video src="http://serverfilm:8080/movie/test/test/2000.mkv" type='video/x-matroska; codecs="theora, vorbis"' autoplay controls onerror="failed(event)" ></video>
  </p>
 </body>
</html>
我以为把:src=var放进去就足够了,可以把其他HTML链接传递给src,但我遗漏了一些东西,你能帮我吗?

使用这个

  <video src="<?php echo $variabile_get; ?>" type='video/x-matroska; codecs="theora, vorbis"' autoplay controls onerror="failed(event)" > </video>