troubleshooting Question

How to get form data after php redirect

Avatar of Jonathan Greenberg
Jonathan GreenbergFlag for United States of America asked on
PHPJavaScriptJoomla
4 Comments1 Solution588 ViewsLast Modified:
I have a php page in a web app I'm developing within Joomla that contains a form. The form action points somewhere (I'm not sure to which actual page), then it redirects to my new page. On my new page, I need access to the form values, but they are not accessible via $_POST. I assume this is because we're arriving at my new page due to a redirect rather than the form action.

I can edit the form and the page it's on pretty much however I like, but because this is all happening within a Joomla extension, I need to avoid getting in the way of the form action. The form action looks like this:

action="<?php echo JRoute::_( 'index.php?option=com_ajaxregistration' ); ?>" method="post"

I suppose I could add to it, but I'm not sure exactly how I would do that or how that might benefit me.

I can't figure out how to access the form data on my new page. One method that occurs is to save the values to a session, but I don't know how to do this from the same page that the form is on. Maybe by adding some javascript to the submit button? Or to the textfield onblur events? Or is it time for me to learn AJAX?

How can I make this form data accessible on my new page? Really need help with this one. Thanks.
ASKER CERTIFIED SOLUTION
Erdinç Güngör Çorbacı
PHP Development Team Leader

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros