From The Blog

PHP: redirect to referrer page

18 October 2012, in PHP

In PHP to redirect to another page you use:

header("location: http://www.example.com");

If we wanted to redirect to the referrer page we use like that:

header('Location: '.$_SERVER['HTTP_REFERER']);



Post a Comment