I am making a website for a museum that involves a questionnaire. I made this questionnaire with the webforms module, which in turn sends the answers to another page to be processed. The people at the museum do not know drupal, let alone php. So when they want to add questions to the questionnaire, it has to be done by me. This is because I also need to change the values that are passed on the next page (via the redirect URL in the webforms module).

To automate the process for them (they probably know enough to be able to add new questions), I wanted to know if there is any way to pass on all the answers from the webforms questions, so that they do not have to fiddle with the php? This way, all answers will be sent, regardless of the questions on the webforms. The page that receives the values has been coded so that it takes any amount of URL-parameters; You do not have to find a way to do that.


You could use the Rules module and the Webform Rules integration module to redirect to a generated URL.

You could create a rule that loops over the results building a custom URL string pointing to your processor script, and then redirect to that URL.

As long as the string is less than about 2000 characters you should be in good shape.

You may want to look into the Form API as this would be much cleaner and possibly simpler with a custom submit handler.

If I misunderstood your question I would be happy to try again if you'll clarify.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.