使用 php/html,我想从 MySQL 中检索电子邮件地址(以及其他信息),然后在表单的输入框中显示电子邮件地址。这将使用户能够编辑和提交更正的电子邮件地址。但是,检索到的电子邮件地址未正确显示在输入框中。所有其他检索到的信息都正确显示。一段代码如下所示:
<tr><td ><span style=color:#125eaa><strong>Email</strong></style></td><td ><input style=background-color:#e2ffc6 name=email type=text id=email value=$email></td></tr>
<tr><td ><span style=color:#125eaa><strong> Address Line 1</strong></style></td><td ><input style=background-color:#e2ffc6 name=ad1 type=text id=ad1 value='$ad1'></td></tr>
“地址行 1”正确显示,但电子邮件不正确。我试过:type=email,但没有解决问题。
非常感谢任何帮助。
谢谢,