sanitize POST arrays

Question

I’m trying to sanitize some arrays received through $_POST[] and insert them into database. How should I do that?

The html is name=”room_types[]”

$room_types = $_POST[‘room_types’];

how to sanitize this array?

0
, dragos.nicolae 4 years 2020-02-18T08:38:29-05:00 0 Answers 60 views 0

Leave an answer

Browse
Browse