HTML文本框不能输入 [英] HTML Textbox not typing
本文介绍了HTML文本框不能输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< form name =inputaction =postblog.php?name =<?PHP echo($ _GET ['name']);?>方法= POST >
发布:< input type =textname =text2>
< input type =submitvalue =提交>
< / form>
解决方案
您的屏幕上可能存在一个错误因为它出现在HTML标签内部。请务必检查是否首先设置 $ _ GET ['name']
:
<$ c $ _GET&&& isset($ _ GET ['name']))?$ _GET ['name' ]:'No_Name_Value_From_GET';?>方法= POST >
发布:< input type =textname =text2/>
< input type =submitvalue =Submit/>
< / form>
在这个例子中,如果 $ _ GET ['name']
未设置,?name =
的值将为 No_Name_Value_From_GET
(但您可以将其更改为无论你想要什么)。
HTH ...:)
I need help. My form in my page looks like below however when I click on the text box the cursor won't appear and I can't type
<form name="input" action="postblog.php?name=<?PHP echo ($_GET['name']); ?>" method="post">
Post: <input type="text" name="text2">
<input type="submit" value="Submit">
</form>
解决方案
There's probably an error that's not being displayed on your screen because it's appearing inside the HTML tags. Make sure to check if $_GET['name']
is set first:
<form name="input" action="postblog.php?name=<?php echo ($_GET && isset($_GET['name'])) ? $_GET['name'] : 'No_Name_Value_From_GET'; ?>" method="post">
Post: <input type="text" name="text2" />
<input type="submit" value="Submit" />
</form>
In this instance, if $_GET['name']
is not set, the value for ?name=
will be No_Name_Value_From_GET
(but you can change it to whatever you want).
HTH... :)
这篇关于HTML文本框不能输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文