Changing the parsing of product_id from the form submission to be backward compatible with previous PHP version.