Any easy way to send vars along with a header("Location:"); statement?
Sure:
$MyNewLoc = "http://www.domain.com/myscript.php?var1=somevalue&var2=somevaule.... etc.."; header("Location: " . $MyNewLoc);
replace var1,var2... with your varible names and somevalue with your values, or you could start a session.
Ether will work!
use single quote, period combo rather than dbl quotes. Example:
<? $url = 'http://www.url.com'; $params = '?param=1'; Header('Location: ' . $url . '/' . $params); ?>
hummm...might investigate the sessions direction, considering variables could be passed via the URL by a user...
you might want to use the url encode function too to prepare the variables... it depends what is in them