Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee为什么这个程序不起作用? [英] Heeeeeeeeeeeeeeeeeeeeeelp ! why this programme doesn't work?
问题描述
看看这个:
< 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屋!