如何在PHP中传递变量的值? [英] How do I pass the value of the variable in PHP?
本文介绍了如何在PHP中传递变量的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个页面video.php,因为我需要将视频的嵌入代码放到最终用户的文本框中并将代码传递给一个div部分。我试过了,
Hi,
I've created one page video.php in that I need to get the embed code for the video into the text box from the end user and pass the code to one div section. And I've tried,
<html>
<head>
<title> Welcome </title>
</head>
<body>
<form name="frm" action="#" method="post">
<INPUT TYPE = "Text" NAME = "code">
<input type="submit" value="Enter Code">
</form>
<?php $code1 = $_POST["code"]; ?>
<div class='video-container'>
<center>
<!-- I need the embed code here -->
</center>
</div>
</body>
</html>
但我不知道如何传递确切的值div部分的文本框。帮助我这样做..
提前致谢,
Sanjita
But I don't know how to pass the exact value of the text box to the div section. Help me to do this..
Thanks in advance,
Sanjita
推荐答案
code1 =
code1 =
_POST [ 码跨度>]; ?>
< div class =' 视频容器' >
< center >
<! - - 我需要这里的嵌入代码 - >
< / center >
< / div >
< / body >
< / html < span class =code-keyword>>
_POST["code"]; ?> <div class='video-container'> <center> <!-- I need the embed code here --> </center> </div> </body> </html>
但我不知道如何传递确切的值div部分的文本框。帮帮我这个..
提前致谢,
Sanjita
But I don't know how to pass the exact value of the text box to the div section. Help me to do this..
Thanks in advance,
Sanjita
尝试
这篇关于如何在PHP中传递变量的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文