// Is the form sent?
if (isFormSent()) {
// Is the coupon code entered?
- if (isPostRequestParameterSet('coupon_code')) {
+ if (isPostRequestElementSet('coupon_code')) {
// Search for the coupon
$result = SQL_QUERY_ESC("SELECT
c.`coupon_id`,
UNIX_TIMESTAMP(d.`coupon_expired`) > UNIX_TIMESTAMP()
LIMIT 1",
array(
- postRequestParameter('coupon_code'),
+ postRequestElement('coupon_code'),
getMemberId()
), __FILE__, __LINE__);
`userid`=%s
LIMIT 1",
array(
- postRequestParameter('coupon_code'),
+ postRequestElement('coupon_code'),
getMemberId()
), __FILE__, __LINE__);