I need some help with some code. I have a registration page where the user inputs their name and email, etc (form1). I want to be able to check for returning users so I have a form where the user just inputs their email (form2).
When the user submits their email in form2 I want to check if that email exists in form1. If it does then I load the lead entry from form1 and if it doesnt I show a message to the user telling them that they need to register.
I've been trying with gform_validation but I'm not sure that its the way to go. I want to avoid handling the user's POST data directly to minimize potential SQL threats.