Home  >  Article  >  Backend Development  >  form表单内的内容用post上传后在php界面怎么接受自动转化为h1和p?

form表单内的内容用post上传后在php界面怎么接受自动转化为h1和p?

WBOY
WBOYOriginal
2016-06-02 11:31:561092browse

phpform表单上传post自动

一个标题输入,一个textarea输入,在该页面点击提交在php界面要怎么接收?然后自动转化为h1和p,要保留textarea中的换行。这是我写的html提交页面的内容。

<code> <form name="form1" method="post" action="diary.php">     <div class="title">            <label for="edtTitle">标题</label>            <input type="text" name="Title" valve="" id="edtTitle" maxlength="100">     </div>        <label for="editor_content" class="editinputname">正文</label>        <textarea name="content" cols="45" row="5"><textarea>        <input type="submit" value="提交"></textarea></textarea>
</form></code>
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