Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- incremental links adding to uri
November 16, 2007, 9:11 pm
rate this thread
another. When I click on each link though, it adds the value to the
url. This is a snippet of the code:
for ($i=$first_year; $i<=$last_year; $i++)
echo '<td><a href="'.$_SERVER['PHP_SELF'].
The first time the link will be correct, then the second time it will
add ?year=2008 or whatever the value it to the uri. How can I make it
so that it doesn't keep adding to it, but replaces it?