RE: [PHP] URL Variables
| From: | Pablo Gosse | Date: | Tue, 28 Oct 2003 17:07:47 +0000 |
| Subject: | RE: [PHP] URL Variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167891@lists.php.net to get a copy of this message | ||
On Tuesday, October 28, 2003 8:57 AM Jed R. Brubaker wrote:
> Is there a way to preserve URL variables and have a link simply add a
new
> variable to the end?
> I am tabulating data and I have URL variables defining which dataset
to
> view and in what way to view it. I would now like to set the SQL
statement
> up with a limit and add some "Previous", "Next" commands, and even
paging
> numbers, but how should I go about setting up the link so that the
> existing URL variables are preserved?
$_SERVER['HTTP_REFERER'] will give you the referring url with all vars
attached, so then all you'll need to do is append your new vars to the
end
of this.
Cheers,
Pablo