Re: newbie.. $_GET & $_POST

From: Date: Mon, 03 Jan 2005 15:06:20 +0000
Subject: Re: newbie.. $_GET & $_POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-205520@lists.php.net to get a copy of this message
Pablo D Marotta wrote:
Hi there.. I need to pass variables to a page through an html link. I do it like this: <A href="Extra/excelListing3.php?buildQuery=<?php echo $buildQuery ?>">Export</A> where 'buildQuery' is the variable I´m passing. In the destination page, I capture it with $_GET and that´s it. I want to know if there is any way of doing it without showing the variables in the direction bar.
Turn it into a form, and post it. <form name="whatever" action="Extra/excelListing3.php" method="post"> <input type="hidden" name="buildQuery" value="<?php echo ( $buildQuery ); ?>" /> <a href="JavaScript:document.whatever.submit()">Export</a> </form> -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#205520) next »