Closed (fixed)
Project:
Webform
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2008 at 12:02 UTC
Updated:
10 Feb 2008 at 20:55 UTC
I generated a form by using Webform, but the form is nested within the drupal website.
How can i export the form with the database connection commands together into an intergrated .php document.
Comments
Comment #1
quicksketchHmm, I don't think I've ever seen someone trying to take a form from Drupal and make it separate from Drupal. Because Drupal uses it's own FormsAPI for processing and validating forms, I don't see how something like this would be possible. If you're just looking to duplicate a form, you can use the node_clone module to copy a webform to a new one.
If your determined to get the form "out" of Drupal. You might look at the drupal_form_render function which gets the form array before it's rendered. That would give you the complete form structure in an array form before it's rendered into HTML. Other than that... view source on the page and copy/paste? :)
Comment #2
quicksketch