Closed (fixed)
Project:
Webform
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2007 at 02:34 UTC
Updated:
5 Oct 2007 at 14:59 UTC
I have a simple webform. I have specified the redirect URL to be the full URL to a servlet. The "Redirect POST Values" checkbox is set. When I submit the webform, it does indeed forward to the servlet. The post data in the http request, however, is empty. There simply are no elements in the parameter array. Am I missing something fundamental?
Thanks!
Comments
Comment #1
quicksketchSeems to work for me, here's what I tried:
1) Create new php file called test.php in the root of my Drupal install
2) Pasted this code in:
3) Set the forward POST to http://localhost/test.php
Everything shows up fine. It may be that your servlet doesn't know how to understand multidimensional arrays, or that the POST was sent across domains, which I'm not certain would work.
Comment #2
harro commentedFollowing your instructions gave me an empty array (array() )... Maybe $_POST does not contain the values but they are stored in a different variable?
Comment #3
harro commentedNot sure why (what is the difference, only the HTML and BODY tags) but the following did print the $_POST array (and more):
Thanks for pointing me in the right direction, though!
Harro
Comment #4
quicksketchAwesome! I'll mark as fixed. Sounds like your browser might not display content without html tags (or similar).
Comment #5
(not verified) commentedComment #6
keesje commentedSorry for changing to 'active', but I really believe this is a bug.
Look here:
http://drupal.org/node/139196
I'm not the only one.
Let me know if I'm wrong.
Comment #7
keesje commentedExcuse, back to closed.
Beats me, I unchecked 'Redirect POST Values', saved, checked again, saved, and it's working now. Strange.
Nevermind. I will post if it happens again.