Link to home
Start Free TrialLog in
Avatar of rawcoder
rawcoder

asked on

Using wordpress shortcode to process form values

I am currently developing shortcode to display a list of items on a page.  There is a form with a series of listboxes for a user to filter the list that appears.  Here is my problem, whenever I check for the values of the "$_POST" variables there are always empty.  Does wordpress have some utility that intercepts the form values before they make it to the shortcode.  The strange thing is that if I go to the page directly and pass the value along the querystring and change from $_POST to $_GET it works.  This is very confusing.  Any help would be greatly appreciated.
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Try changing your code from $_POST to $_ REQUEST and see if it works better.
Avatar of rawcoder
rawcoder

ASKER

Still not working.  Could it be a timing issue?
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Disabling all plugins did not work.
Did you check to see if a redirect is present?  Use Firebug or similar to see what happens as you submit a form.  If there is a 301 or 302 at any point after submission, the $_POST array is useless.