Forum Moderators: coopster
header("location: /page.html?mode=del&cat=$cat&ann=$ann");
When I do that, the new page appears and the new page receives the value for the first variable. For some reason the second and third parts of the data aren't received in the new page, although they are present right before this line in the sending page.
What am I doing wrong?
Perhaps I've taken the use of & too far. Given that this isn't a link and doesn't appear in the HTML at all, maybe there is no need to use the &?
You're correct. There's no need for the & here. This never shows up in an HTML document, so it will never face a validator, so raw ampersands are the correct way to go.
However, you should be encoding your url variables. There are certain characters that can't be send through a URL "raw". Look into the the urlencode [us3.php.net] function.
header("location: /page.html?mode=del&cat=".urlencode($cat)."&ann=".urlencode($ann));