dongtai6741 2016-02-02 01:41
浏览 8
已采纳

是否存在多行文本区域的替代形式(不像输入字段)

I would like to know if there is a multiline textarea you can put in a form that looks like this:

<form action="form.php" method="POST">
    <input name="field2" type="text" />
    <input type="submit" name="submit" value="Submit">
</form>

as you can see, the php script is reliant on the FORM tag, is there any way I can make the textarea actually work in the form like an input element?(what i am trying to do is use php to save a text file server side when button clicked)

</div>
  • 写回答

1条回答 默认 最新

  • dounouxi1020 2016-02-02 01:43
    关注

    Yes. Just include the following within the form tags:

    <textarea name='textfield' placeholder='type your text here'></textarea>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?