Home  >  Article  >  Web Front-end  >  基础问题求帮助_html/css_WEB-ITnose

基础问题求帮助_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:34:38842browse

<body><form action="tweet" method="post"><p>姓名: <input type = "text" name = "content" /><p><p>Email:<input type="text" name="content2" /><p><p><input type = "submit" value = "tweet" /></p></form><hr /><c:forEach var="e" items="${tweetList}" >${f:h(e.content)}<hr /></c:forEach></body>


请教下:现在可以输入名字然后在服务器上显示,追加个Email后
想把Email的input输入的内容表示出来如何修改,现在只能表示名字的。
 Email的内容无法显示,例如
 姓名:Email地址 一起表示
~~~~~



回复讨论(解决方案)

补充

<body><form action="tweet" method="post"><p>姓名: <input type = "text" name = "content" /><p><p>Email:<input type="text" name="content2" /><p><p><input type = "submit" value = "tweet" /></p></form><hr /><c:forEach var="e" items="${tweetList}" >${f:h(e.content)}<hr /></c:forEach></body>

这段

${f:h(e.content)}

可以输出姓名,还想输出输入的email改如何添加


${f:h(e.content)}
${f:h(e.content)2}





这样就ok

抱歉是
${f:h(e.content2)}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn