How to redirect to another URL in PHP. Can you give me an example
In PHP we can use header() to send a raw HTTP header. Using headers() method, We can easily redirected to the new page without having to click a link. Also its useful for search engines. Keep in mind, the method header() must be called before any output is sent, either by normal HTML data and even empty lines,spaces in a file, or from PHP. It is a very common error.
header("location: http://softwarehtec.com/"); exit;