This Function Has Been Available Since:|
(AFCommerce v 2.1, Functions v 1.1)
Gets a string variable from a url query string.
string = afc_secure_string_GET (variable)
This function is part of the new security features for version 2. Use this function when you are posting in a variable that will be a number. It will first use $_GET super global and retrieve the variable from the query string, and then prepare the variable to be stored in a database, so you should only use this function when the user input will be stored in the database. For the overall security of AFCommerce, this page does not fully disclose all methods used to protect your web server, so that hackers can not study the security functions and attack your website. This helps make AFCommerce more secure than other free software that is completely open source.
variable (string) - The name of the variable that is being retrieved. This name is normally the value inside of the quotes in a normal $_GET['variable'] statement.
Returns the variable after it is checked for illegal characters that may be used to attack your website.
Open Source: No
$variable = afc_secure_string_GET("variable");
Back to Functions List