|
Like that.
$title = addslashes($_GET['title']);
$descr = addslashes($_GET['descr']);
$src = addslashes($_GET['src']);
It stops anyone using a ' or " to inject code into your script.
It will also escape legitimate 's. So "Jeffery's house" becomes "Jeffery\'s house". Make sure you then use stripslashes($src) when you want to output the data.
|