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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php