This Function Has Been Available Since:
(AFCommerce v 2.1, Functions v 1.1)
Gets a number variable from a url query string.
Description
string = afc_secure_number_GET (variable)
This function is part of the new security features for version 2. Use this function when you are getting a variable from a query string. It will first use $_GET super global and retrieve the variable from the query string, and then checks the variable to see if it's a number. 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.
Parameters
variable (integer) - 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.
Return Values
Returns the variable after it has been checked to see if it is a number. If it is not a number, or is blank, zero will be returned.
Open Source: NoPaul's Examples $variable = afc_secure_number_GET("variable");
|
Back to Functions List
|