I used to use this function to redirect from one php page to another:
header( 'Location: student.php?cnp='.$_REQUEST['name']) ;
In my localhost it does work, but if testing it in internet, it doesn’t redirect.
I’ve also tried to give the full path (like http://.../student.php?...) but still it doesn’t work. Does anyone know why and what should I do?
Try this:
Second parameter replaces previous location header (if any).
Also check what HTTP response code you receive (it should be 30X)
If nothing helps you can always redirect by javascript:
This is not so professional but works even if headers has already been sent.