This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

post function

Defined in /init/custom_helpers.php, lines 93-96
Author LemonStand eCommerce Inc.
mixed function post($name $name, mixed $default=NULL)
$name $name specifies the POST element name.
$default mixed specifies a default value. Optional parameter, the default value is NULL.
{return} mixed returns the POST array value or the default value.
Returns a named POST parameter value. Returns an element with a name specified in the first parameter from the $_POST array. If the element is not found, returns default value, optionally specified in the second parameter. This function is useful for form processing. The following code extracts the name POST element and if there is no such en element, uses string "John".
$name = post('name', 'John');
This function is a shortcut for Phpr_Request::post() method.