php- Redirect the same page Posted on January 1, 2017 by Chandan Sharma in CodeIgniter, PHP# Its Redirects the same page where it is.. header("location:http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"); using this post request can be blanked or empty no duplicate data will insert in the table. Share this:TwitterFacebook Published by Chandan Sharma View all posts by Chandan Sharma