Php 从用户获取价值

Php 从用户获取价值,php,iframe,Php,Iframe,这是我的密码 <iframe src="http://www.facebook.com/video/embed?video_id=[VIDEO ID PASTE HERE]" width="1280" height="720" frameborder="0"></iframe> 在PHP中我应该做什么? <iframe src="http://www.facebook.com/video/embed?video_id=<?php echo $_GET['vi

这是我的密码

<iframe src="http://www.facebook.com/video/embed?video_id=[VIDEO ID PASTE HERE]" width="1280" height="720" frameborder="0"></iframe>
在PHP中我应该做什么?


<iframe src="http://www.facebook.com/video/embed?video_id=<?php echo $_GET['videoid'] ?>" width="1280" height="720" frameborder="0"></iframe>

首先,根据页面的不同,你的HTML应该有一个更全面的动作集

<form action="" method="get">
<input type="text" name="videoid">
<input type="button">
</form>

还有你的iFrame

<iframe src="http://www.facebook.com/video/embed?video_id=<?php echo filter_var($_GET['videoid'], FILTER_SANITIZE_STRING); ?>" width="1280" height="720" frameborder="0"></iframe>

您的答案很有帮助,但单击“提交”后如何显示查看更新的答案如何在函数上使用Iframe标记在函数上是什么意思?
<form action="" method="get">
<input type="text" name="videoid">
<input type="button">
</form>
<iframe src="http://www.facebook.com/video/embed?video_id=<?php echo filter_var($_GET['videoid'], FILTER_SANITIZE_STRING); ?>" width="1280" height="720" frameborder="0"></iframe>