Re: Header() questions

From: Date: Sun, 22 Oct 2000 16:36:33 +0000
Subject: Re: Header() questions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21646@lists.php.net to get a copy of this message
> My goal is to send a sentence via the header() function. For example: > > header("LOCATION: > http://208.204.177.137/MyScript.php?SENTENCE=" . > $mysentence); > > How do I insert the "+" for the spaces in $mysentence as well as other > characters that must be "escaped"? Try: header("302"); header("Location: http://208.204.177.137/MyScript.php?SENTENCE=" . urlencode($mysentence)); exit(); > > Another question is about "GET" and "POST". It appears that the above > syntax is using the "GET" method of passing data. Is it possible to > mimic the "POST" method with the header function. > I'd like to know the answer to this one myself! Hope this helps, Joe

« previous php.general (#21646) next »