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>