By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,304 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,304 IT Pros & Developers. It's quick & easy.

How to forward a request object with request data in php?

P: 27
Hi All,

I have page called page1.php with some hidden fields and i submitted the page to page2.php. I page2.php, i am able to get the values of hidden fields through $_REQUEST. And from this page 2 i need to forward the values of hidden fields to page3. Is any way to send the previous request directly to page3? or do i need to again write the values into hidden fields and get them in page3? I have a total of 70 hidden fields getting through the script. So i could not use sessions.

Regards,
Sridevi.
Feb 10 '08 #1
Share this Question
Share on Google+
1 Reply


ronverdonk
Expert 2.5K+
P: 4,258
Since the $_POST array is cleared, you either have to store the values from the hidden fields of form1 again in the hidden fields of form2 OR you store them in the $_SESSION array in form1 and pick them up again in form3.
Do not forget to start each script with the
[php]
start_session;[/php]
command.

70 fields cannot be a problem for the latter.

Ronald
Feb 10 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.