I have a form which posts a URL from it's place where it was posted. for example
myform.php
mytemplete.php?ID=4
Based on some data my formprocess.php page may take the user back to this orginal page via a header. I also need to add a variable into it such as?Err=1
so it might be
header("Location myform.php?Err=1");
but i have a problem if there submitted URL as a query string in it
header("Location mytemplate.php?ID=4?Err=1");
does not work, it need a & and not a ?
HOw can I do this???
I thought if i have a submitted URL i could do a if statement on the $_SERVER['QUERY_STRING']; but i'm not sure how??
can someone please help