Closed (fixed)
Project:
Webform
Version:
6.x-2.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2008 at 12:52 UTC
Updated:
26 Jan 2010 at 04:19 UTC
Hi! I wanted to commend you guys for creating this great module.
But I've been having problems with my url redirection. I'm using this:
$node->webform['confirmation'] = 'internal:node/xx&var=' . $varHere;
where xx is the number of my node and varHere is something else.
Anyway the problem is that whenever the page is redirected, the ampersand and the equal sign always gets converted to percentage encoding ( & is %26, and = becomes %3D).
Any thoughts on this how I can pass the variables properly?
Thanks! :)
Comments
Comment #1
quicksketchYep, if you'd like to safely set your URL to something with parameters, you might try using the url() function. The "internal:" syntax is only there to help avoid PHP, but since you're doing this in the additional submission field, you're using PHP already.
Comment #2
mdayton commentedditto on the great module!
I have read multiple threads regarding variable URL redirects from webform, but this one seems to match my challenge.
I use webform as my return URL from Amazon Payments to collect additional order data from customer once their payment is pre-authorized. Once user fills out webform, I am trying to redirect them to a page according to a payment status code that I received back from Amazon Payments site. Payment status is filling in properly to a field named "payment_status" using get from Amazon URL querystring. The payment stauts field is a hidden field with a system name of "payment_status".
Once user completes form and submits, I am having trouble creating a variable redirect URL that appends the payment status code to the end of the URL.
I am using a two letter code "PR" as an example below that points to a page on my site "../payments/pr". This way, I can take user to a different page for every possible payment code received from Amazon. I am not a coder, but have placed the following snippet in the additional processing window.
I have tested the code with a manually entered field value also, but URL is still missing variable. What am I doing wrong?
Comment #3
quicksketchSounds like $status does not exist at the path you're trying to retrieve it from. I'm closing this issue as help with custom code is no longer provided in the issue queue.