The Student Room Group

How do you sanitise a variable?

On Fred's Deli when It gets hacked in digital citizen what is the right answer you get given
$review = $_POST['review'];

insertIntoDatabase($review);
Original post by gevc234
On Fred's Deli when It gets hacked in digital citizen what is the right answer you get given
$review = $_POST['review'];

insertIntoDatabase($review);

$review = POST['review'];

$review = escapetags($review);

Quick Reply

Latest