I'm using this code in the form_validate function for a custom form I built. If you build a form using the Form API you have the option of specifying a validate function and that is where I'm placing this code. If the form doesn't validate then it won't submit and you'll have the opportunity to display the error messages.
Hope that helps! Let me know if I can help any further.
Hi soajetunmobi,
I'm using this code in the form_validate function for a custom form I built. If you build a form using the Form API you have the option of specifying a validate function and that is where I'm placing this code. If the form doesn't validate then it won't submit and you'll have the opportunity to display the error messages.
Hope that helps! Let me know if I can help any further.
Tobias