Jump to content

Module Development in WHMCS


devbanana

Recommended Posts

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?

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated