Jump to content

Redirecting with POST data


rahul.pache

Recommended Posts

Hello !!!

Happy new year (this is my fst post after new year 2009)

When I tried to redirect my page to a new location I came to know that no POST data is sent while redirecting.

 

So my question is:

While redirecting a page to a new location using header("Location: newpage.php"); I want to send POST Data. Is there any method to do it ?

 

Have a nice day !!!  :D

Link to comment
https://forums.phpfreaks.com/topic/142506-redirecting-with-post-data/
Share on other sites

Why don't you use the get method and tack the variables on the end of the URL?

 

Depending on what you're sending you could put it in a session as well.  Let's see some code and a more detailed explanation of what you want.

 

With the post you have to put it in a form.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.