$_POST, header()
Moderator: General Moderators
$_POST, header()
Can you pass $_POST variable data without using a form? Specifically, I am trying to use header("Location: http://www.domain.com/index.php") to redirect the script, but I need it to hold onto the $_POST data. Is this possible?
Re: $_POST, header()
As far as I know, there is no other way. But I don't know much far 
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
you can use cURL to post variables to a page
-
RobertPaul
- Forum Contributor
- Posts: 122
- Joined: Sun Sep 18, 2005 8:54 pm
- Location: OCNY
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Yes, I am redirecting to a page on my site. Is the $_SESSION variable only available in the current script? How could I pass it to the next script that I'm trying to redirect to? Does header() or a similar function support passing data?twigletmac wrote:Are you redirecting to a page on your site? If so you could save the $_POST data in a session.
Mac
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
all your questions are answered by reading about what sessions are and how they work.
http://php.net/session
http://php.net/session