Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee为什么这个程序不起作用? [英] Heeeeeeeeeeeeeeeeeeeeeelp ! why this programme doesn't work?

查看:95
本文介绍了Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee为什么这个程序不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看看这个:

< html>

< body>

<?php

if(isset($ _ POST [''tt''])){

echo $ _POST [''tt'']。"< br />< br /> < br />" ;;

}

?>

< form action =" test1.php"方法= QUOT; POST" ID = QUOT;形式" >

< input type =" text" ID = QUOT; TT" />

< input type =" submit"值= [提交" ID = [提交" />

< / form>

< / body>

< / html>


当我按下

''submit''botton时,我希望它显示我在输入中输入的文字。但是它不起作用。

解决方案

_POST [''tt''])){

echo


_POST ['' tt'']。"< br />< br />< br />" ;;

}

?>

< form action =" test1.php"方法= QUOT; POST" ID = QUOT;形式" >

< input type =" text" ID = QUOT; TT" />

< input type =" submit"值= [提交" ID = [提交" />

< / form>

< / body>

< / html>


当我按下

''submit''botton时,我希望它显示我在输入中输入的文字。但是它不起作用。


2006年6月14日星期三21:09:17 +0800,Carl Anatorian写道:

我想用它来显示我输入的文字当我按下
''submit''botton时输入。但它不起作用。




因为PHP选择名称属性,而不是id属性。试试这个:

< html>

< body>

<?php

if( isset(


look at this :
<html>
<body>
<?php
if(isset($_POST[''tt''])) {
echo $_POST[''tt'']."<br/><br/><br/>";
}
?>
<form action="test1.php" method="POST" id="form" >
<input type="text" id="tt" />
<input type="submit" value="submit" id="submit" />
</form>
</body>
</html>

I want to it to show the text I enter in the input when I press the
''submit'' botton.But it doesn''t work.

解决方案

_POST[''tt''])) {
echo


_POST[''tt'']."<br/><br/><br/>";
}
?>
<form action="test1.php" method="POST" id="form" >
<input type="text" id="tt" />
<input type="submit" value="submit" id="submit" />
</form>
</body>
</html>

I want to it to show the text I enter in the input when I press the
''submit'' botton.But it doesn''t work.


On Wed, 14 Jun 2006 21:09:17 +0800, Carl Anatorian wrote:

I want to it to show the text I enter in the input when I press the
''submit'' botton.But it doesn''t work.



Because PHP picks "name" attribute, not "id" attribute. Try with this:
<html>
<body>
<?php
if(isset(


这篇关于Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee为什么这个程序不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆