The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Proper syntax for ft_api_check_submission_is_unique IP Address check - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: Proper syntax for ft_api_check_submission_is_unique IP Address check (/showthread.php?tid=1065) |
Proper syntax for ft_api_check_submission_is_unique IP Address check - fourmat - Feb 5th, 2011 I am trying to make sure that form submissions are unique with both email and IP address verification. I currently have the verification for the email address working, but I am wondering what the proper syntax is for the $criteria array using IP address: eg: current PHP Code: $criteria = array( would it be? PHP Code: $criteria = array( I guess my confusion is that the form isn't actually posting the ip address as a hidden field and FT seems to be adding the IP field, so I'm not sure how to structure the variable name. RE: Proper syntax for ft_api_check_submission_is_unique IP Address check - Ben - Feb 9th, 2011 Hi fourmat, Good question! You had the syntax right, just not the way of extracting the user's IP address. Try this: PHP Code: $criteria = array( Let me know if that doesn't work! - Ben |