Re: I want to use POST when redirect via PHP Header function.

From: Date: Thu, 30 Jun 2011 09:55:00 +0000
Subject: Re: I want to use POST when redirect via PHP Header function.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-313823@lists.php.net to get a copy of this message
that's quite basic thing which you can definitely find in the manual On 30 June 2011 10:48, Md Ashickur Rahman Noor <ashickur.noor@gmail.com>wrote: > > > > On Thu, Jun 30, 2011 at 1:52 PM, Geoff Lane <geoff@gjctech.co.uk> wrote: > > 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 example > it will be helpful for me. > ---------------------------------------------------------- > Dedicated Linux Forum in > Bangladesh< > > http://forums.linuxdesh.com/member.php?action=register&referrer=3%20> > Follow Me Twiter <https://twitter.com/#%21/AshickunNoor> > Thank you > Md Ashickur Rahman >

« previous php.general (#313823) next »