I have a forms project outside of drupal that access a database for information storage and retrieval.

I would like to integrate what I have into drupal where drupal would be a platform page,
surfers would go to see the sight but certain users would have the right to fill out the
forms. Using drupal security measures to keep non privileged users out of the forms.

Also, use drupal's menus to guide privileged users to the forms.

Just looking for any help or a sample, thanks.

Jason

Comments

aufumy’s picture

Sample module to create a page where you can setup what roles have rights to 'access foo'
http://api.drupal.org/api/file/developer/examples/page_example.module/6

The 'page callback' for a form is 'drupal_get_form' and 'page arguments' is the name of the function
http://drupal.org/node/300997

Inside the function for the form, you would add form elements
If the function name of the form is 'test_form', then there would also be functions called 'test_form_submit' and 'test_form_validate'
http://api.drupal.org/api/file/developer/topics/forms_api.html/6