Php $_POST method to get textarea value

前端 未结 8 1292
一整个雨季
一整个雨季 2021-02-01 08:45

I am using php to get textarea value using post method but getting a weird result with that let me show you my code

8条回答
  •  别那么骄傲
    2021-02-01 09:24

    Always (always, always, I'm not kidding) use htmlspecialchars():

    echo htmlspecialchars($_POST['contact_list']);
    

提交回复
热议问题