Closed (won't fix)
Project:
Webform
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2009 at 16:17 UTC
Updated:
31 Jan 2011 at 16:17 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedI'd like this functionality too!
I'm making a form that needs to send the user-entered values to an external website. Failing all else, I'll make my own form in PHP, but I like the Webform UI so prefer that, if possible...
Comment #2
quicksketchWebform is a package, not a just a form-building tool. This would be better off as a separate module without all the bells and whistles of Webform (not to mention the significant weight). I'd suggest a super-simple module that uses Form Builder to construct the forms.
Comment #3
Anonymous (not verified) commentedYes, I suppose that'd be the best option. Looking forward to Form Builder!
Comment #4
uhsarp commentedHere's the code to extract all the form data and fields
theme('webform_mail_fields', 0, $form_values['submitted_tree'], $node);
so you can use it like this
------
------
Customize the above code as needed and paste it in the "Additional Processing" field in the webform properties.
Comment #5
jfinkel commentedHere is a method that works for me to send the form data on to Paypal.
I used Webform to create the basic form. In my case, I do want the data stored in the database. In the Webform Advanced Settings I added the following code to the Additional Processing
This assumes that there is a webform field named "amount" because that is what Paypal expects.
I could have create all these fields as Webform hidden fields, but then the page would have rendered with an email address (the ['business'] field), which could be harvested by bots. I never put hard-coded email addresses on pages. It's just easier for me to create all the hidden fields in one place.
Anyway, I hope this helps someone.
Comment #6
rdworianyn commented-jfinkel - This is exactly what I was looking for! Great solution to a very common web practice. Your time and effort in sharing this with the community is greatly appreciated!
Comment #7
dmidkiff commentedjfinkel-
I think this method would work for me as well. However, I will need to change it to work with linkpoint.
if I add the code just as you have it, the form submits but nothing is redirected.
I am getting this error:
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /myroot/sites/all/modules/webform_php/webform_php.module(82) : eval()'d code on line 18.
same thing on line 21.
I am a novice and any suggestions would be most helpful.
Comment #8
matt bre #5 on 6.x-3.2 there is no Additional Processing field. I tried putting this in the confirmation field, but it didn't work. Is there a way of doing this in 6.x-3.2?
Comment #9
matt bNow trying this with Webform PHP (http://drupal.org/project/webform_php) but the code snippet in #5 will need tweeking as the data is submitted with no PayPal payment.... I'll post updated Additional Processing code for Webform 3 with PHP here if I figure it out!
Comment #10
geerlingguy commentedFor those using Webform 3, check out this post, which contains sample code I used with my D7 site to redirect a user to PayPal after completing a webform (thanks partly to code found in this thread):
http://www.midwesternmac.com/blogs/jeff-geerling/integrate-webform-3x-pa...
The Webform Payments module is slated for a D7 release some time, but I haven't heard much since October last year...