Commit ee14f05e authored by danmcquillan's avatar danmcquillan
Browse files

fix clean_input() being declared twice

parent 1d9d935c
......@@ -71,15 +71,6 @@ $content .= $form_html;
// ------- START form processing code... -------
// define a function to sanitise user input (this would ideally be in includes folder)
// helps protect against XSS
function clean_input($data) {
$data = trim($data); // strips unnecessary characters from beginning/end
$data = stripslashes($data); // remove backslashes
$data = htmlspecialchars($data); // replace special characters with HTML entities
return $data;
}
// define variables and set to empty values
$title = $artist_id = $price = $year = $genre = $stock = "";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment