Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.