Re: Resending POST Variables

From: Date: Wed, 28 May 2003 16:19:37 +0000
Subject: Re: Resending POST Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149277@lists.php.net to get a copy of this message
Shaun wrote:
Hi, I have a page which uses POST variables sent from a form. If a user clicks on a link on this page is it possible to send those POST variables to the next page aswell?
You can send them by tagging them to the end of the link, or saving them into a session, but you can't (for obvious reasons) access POST variables after a GET request. Just loop through the POST superglobal (i.e. using foreach) and create a appending string for your hyperlink. Regards, David -- David Grant Web Developer david.grant@wiredmedia.co.uk http://www.wiredmedia.co.uk Tel: 0117 930 4365, Fax: 0870 169 7625 Wired Media Ltd Registered Office: 43 Royal Park, Bristol, BS8 3AN Studio: Whittakers House, 32 - 34 Hotwell Road, Bristol, BS8 4UD Company registration number: 4016744 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************

« previous php.general (#149277) next »