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

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

Suppose I have a form like this:

Section1:
Sec
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-27 02:00

    Use the $_POST variable like this.

    
    

    the inline conditional checks if the $_POST['post_text'] is set to remove the NOTICE warning

提交回复
热议问题