how can i stop this &add_favorite=5
from overwriting in variable
can i reset this in url without even massing with other variable?
is been long time, Please help now!!!
Micro wrote:
how can i reset the same variable with different id on the url?
this is url address and variable.
$url = 'http://' . $HTTP_HOST . '' . $PHP_SELF . '?' . $HTTP_SERVER_VARS[QUERY_STRING];
this is function to add extra variable in url with others variable.
printf(" Save This: <a href=\"$url&add_favorite=%s\"> button </a> ", $add_favorite);
this is the url when you link ones
http://www.domain.com/try/trymain.php?cat_id=1&nid=1&add_favorite=1
but when i click again for different thing to add in my favorite list, the url shows like this
http://www.domain.com/try/trymain.php?cat_id=1&nid=1&add_favorite=1&add_favorite=2&add_favorite=5