Hey guys... I'm sorry to bother... I've been trying to solve this problem but I cant find somthing clear about it.. and to be honest I dont know how to searh properly for this problem on google.
Here's thing Im working on this website, and I just learned about using the headers to send data... the thing is I set up a repeat region on Dreamweaver and some pagination links on the page. but whenever I perform any action on a "paginated" page the URL on the address bar becomes:
http://localhost/rgreenroom/main.php?page=Production&prod=ProdAlbum&c_id=18&prod_id=2
Which wouldn't bother me, but the problem is that at every new action I perform on the same page (like delete a record) it adds more and more "&" or if I dont send this crazy header... it goes back to the first page, then you have to paginate back to the one you where to continue erasing (some have over 10 pages). That's how the URL grow after the 3rd deletion on that page:
http://localhost/rgreenroom/main.php?pageNum_listPhotos=1&totalRows_listPhotos=187&page=Production&prod=ProdAlbum&c_id=18&prod_id=2&a_id=1&pageNum_listPhotos=1&totalRows_listPhotos=187&page=Production&prod=ProdAlbum&c_id=18&prod_id=2&a_id=1&pageNum_listPhotos=1&totalRows_listPhotos=187&page=Production&prod=ProdAlbum&c_id=18&prod_id=2&a_id=1&pageNum_listPhotos=1&totalRows_listPhotos=187&page=Production&prod=ProdAlbum&c_id=18&prod_id=2&a_id=1
How can I send a clean header in this case?
I tried this:
$url = $editFormAction;
if (isset($_SERVER['QUERY_STRING'])) {
$url .= (strpos($url, '?')) ? "&" : "?";
$url .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $url));
exit;
In an attemp to clean the "&" from the URL... but no results.
Can sum1 help me?🙂
Thanks a lot >_<