after submitting a form I get redirected to the same page because I settled the form action as $_SERVER['PHP_SELF']
but I've got the problem I need to be redirected to the full url which pass the id and cat GET variables.
I think I can easily solve it by adding to the server variable something like
.'?id='.$_GET['id'].'&cat='.$_GET['cat']
but I would like to know if there is something similar to PHP_SELF
, but which keep the full url with the GET variables.