pmatos wrote:
How can I in php have a link that reloads the exact
same page but before reloading, changes some variables?
echo '<a href="', $_SERVER['PHP_SELF'],
'?foo=1&bar=2">Click here to change variables</a>';
When the script reloads, you can access the values of
foo and bar as $_GET['foo'] and $_GET['bar'], respectively.
Or, you could just save them as session variables...
Cheers,
NC