Search code examples
drupaldrupal-7drupal-modules

Drupal: Custom Form Creation, Best Method


I'm relatively new to Drupal, but not CMS's in general. I'm creating a site for a client. The most important part is creating a fairly complex form in which users input various types of data to be stored in the database. I had assumed the best method for doing this was to create a custom module. Is this the case, and if so can someone direct me to documentation or a tutorial on the best way to create a module of this nature? If not, I'm open to suggestion for the best way to create this kind of form even if it is hardcoding the content.


Solution

  • In drupal there is a Form API to do this, a very good working example is used in the documentation at drupal community, here are the links for that:

    And one more thing Never go for hard coding things try taking the advantage of all available API's.