Form Tools
API- ft_api_check_submission_is_unique - 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: API- ft_api_check_submission_is_unique (/showthread.php?tid=258)



API- ft_api_check_submission_is_unique - azparrothead - Aug 24th, 2009

Are you able to check multiple DB fields (i.e. multiple lines in the $criteria) to determine if a record is unique?

$criteria = array(
"attendee_email" => $_POST["attendee_email"],
"attendee_last_name" => $_POST["attendee_last_name"],
"attendee_zip" => $_POST["attendee_zip"],
"staus" => "Active"
);


Thanks!


RE: API- ft_api_check_submission_is_unique - Ben - Aug 24th, 2009

Heya,

Yes, exactly! You can enter as many rows as you want to uniquely identify the row.

- Ben