How to keep text inserted in a html <textarea> after a wrong submission?

后端 未结 4 568
温柔的废话
温柔的废话 2021-01-27 01:27

Suppose I have a form like this:

Section1:
Sec
4条回答
  •  失恋的感觉
    2021-01-27 01:58

    You could use the same approach, but put the echo between the opening and closing tags, as the textarea doesn't have a 'value' (as such) it has textual content:

    
    

提交回复
热议问题