What does the function get_magic_quotes_gpc() means?
The function get_magic_quotes_gpc() tells us whether the magic quotes is switched on or no.
The function get_magic_quotes_gpc() tells us whether the magic quotes is switched on or no.
We have to enable the Magic quotes entry in the configuration file of PHP.
The stripslashes function enables us to remove the escape characters before apostrophes in a string.
The addslashes function enables us to escape data before storage into the database.
The unset() function is dedicated for variable management. It will make a variable undefined.
The unlink() function is dedicated for file system handling. It simply deletes the file given as entry.
If we want to check whether a variable has a value or not, it is possible to use the empty() function.
It is possible to use the dedicated function, ctype_alnum to check whether it is an alphanumeric value or not.
It is possible to use the dedicated function, is_numeric() to check whether it is a number or not.
To access the data sent this way, you use the $_POST array. Imagine you have a form field called ‘firstname’ on the form when the user clicks submit to the…