james wrote:
james wrote:
im trying to pass one variable but when i click every time on the link it puts extra variable next to.
for example this is the url:
http://www.domain.com/try/trymain.php?cat_id=3&nid=7
and i want to put this variable next to it when every time is clicked, this is the variable:
&add_favorite=$add_favorite
but when i click every single time it put this variable in end, so lets say i click 3 times, the url show's like this:
http://www.domain.com/try/trymain.php?cat_id=3&nid=7&add_favorite=9&add_favorite=7&add_favorite=5
how can i make replace this variable (&add_favorite=4) every time i click on the link?
this is i use next to the variable:
$url = 'http://' . $HTTP_HOST . '' . $PHP_SELF . '?' . $HTTP_SERVER_VARS[QUERY_STRING];
Deception wrote:
Do you mean the PID value?
If so, what is the purpose of changing the value? That would help in your problem!