Re: HREF and variables

From: Date: Tue, 30 May 2000 11:56:49 +0000
Subject: Re: HREF and variables
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-db+get-99@lists.php.net to get a copy of this message
On Tue, 30 May 2000, Mick Lloyd wrote: > Is there a way to pass variables via <A HREF> without the variable values > being visible in the browser. I use a hidden type in forms that transfers > them OK but statements such as: > > echo "[ <a href='members_query_form.phtml?DB=$DB&TA=$TA'>MEMBER > SEARCH</a> ]"; > > show the database and table names to the user which I would like to avoid. I guess that you could use a CASE construct and pass a switch to it via the URL, e.g. http://www.foo.com/bar.php3?action=do_something Then under the do_something switch, you could place the relevant db-query code or custom-made functions without worrying about people decoding the sensitive data previously containted in your HREF link. That's what I would do, anyways. :) Might not be the best/right/most efficient way, but hey... Cheers, Nicky W.. -[ pioneer@dac.org ]-

« previous php.db (#99) next »