Md Ashickur Rahman Noor <> wrote:

>> On Thu, Jun 30, 2011 at 1:52 PM, Geoff Lane <>
>>  On Thursday, June 30, 2011, Md Ashickur Rahman Noor wrote:
>> > I want to use POST when redirect via PHP Header function. Is it
>> > possible?
>> AFAICT, it isn't. You can use GET variables by passing them on the
>> querystring. These can then be accessed via $_REQUEST, which is an
>> amalgamation of $_POST, $_GET, and $_COOKIE. So if you have a script
>> that might take input from either $_POST or $_GET, you can usually
>> code fairly transparently by replacing both by $_REQUEST.
>> Alternatively, you can create a form on the page and use client-side
>> javascript to 'auto-submit' via the body onLoad event. However, this
>> does require JS on the client and so cannot be guaranteed.
>> HTH,
>> --
>> Geoff
>Thank you every one. If I use GET then the value will be shown in the
>address bar, Which I don't want to do.
>Can any one describe me the $_REQUEST and $_COOKIE, if you can give
>it will be helpful for me.
>Dedicated Linux Forum in
>Follow Me Twiter <>
>Thank you
>Md Ashickur Rahman

If you issue a header("Location:") call then you can't use post.

If you have to send back values that you don't want a user to see, why don't 
you build the page you are outputting and echo it out instead of issuing a 
whole redirect? That way, you can use hidden form elements to hold these values.

If you just need values to be persistent, have a look at the $_SESSION array 
and session_start() which you can use for this.
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to