简体   繁体   中英

Adding a html/php form to drupal

I created a load of forms using html/php then my client told me I was to use drupal. Other than re making them all is it possible to just add them to a module I create? If so how would I go about? currently if I copy my working code into my drupal module it covers the whole page and the drupal site shows below it.

Any links? or pointers?

You might be surprised how easy it is to re-create a form in the Drupal Webform module. Considering how much it gives you (user logins, XSS protection, e-mails on form submission, CSV downloads, etc.), I think it's really worth it.

I had a set of forms that used CakePHP and were a nightmare to maintain. This year we moved them to Drupal, and everyone is very happy with the new system. There are even non-techie admins who can create their own forms!

Some of the forms took only about 30 minutes to re-create in Drupal, including validation.

The only alternative I can think of is using iframes or putting your forms into node templates (one overridden template for each form), but you are still managing users, duplicate submissions, XSS attacks, data sanitization, changes to forms, and so on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM