devbanana Posted October 17, 2013 Share Posted October 17, 2013 Hello, I am developing a module for WHMCS. It seems pretty easy so far, but what I'm not understanding is whether there are any built-in functions to make things easier. For instance, form validation. If I place a form in my module, is validation all my own responsibility, or are there helpers and such to make things consistent? 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted October 17, 2013 Share Posted October 17, 2013 WHMCS has documented a few functions but not all of them and none concerning form validation. Here is more information on the functions that are documented: http://docs.whmcs.com/Useful_Functions_for_Devs http://docs.whmcs.com/SQL_Helper_Functions 0 Quote Link to comment Share on other sites More sharing options...
devbanana Posted October 17, 2013 Author Share Posted October 17, 2013 WHMCS has documented a few functions but not all of them and none concerning form validation. Here is more information on the functions that are documented: http://docs.whmcs.com/Useful_Functions_for_Devs http://docs.whmcs.com/SQL_Helper_Functions Are there any best practices, or at least other modjule developers who can say how they did their own form validation? After developing for Drupal, WHMCS is a very different experience. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted October 17, 2013 Share Posted October 17, 2013 I either perform form validations manually via regex or I use a form validation class. This one has worked fairly well for me in the past: http://www.html-form-guide.com/php-form/php-form-validation.html It would be nice if WHMCS would document their form validation class then we could use it within custom modules. 0 Quote Link to comment Share on other sites More sharing options...
devbanana Posted October 17, 2013 Author Share Posted October 17, 2013 I either perform form validations manually via regex or I use a form validation class. This one has worked fairly well for me in the past:http://www.html-form-guide.com/php-form/php-form-validation.html It would be nice if WHMCS would document their form validation class then we could use it within custom modules. Yes, totally agreed. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.