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>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码