php

How to redirect to another page in PHP

In this tutorial, we are going to see how to redirect to another page in PHP. You can simply use the PHP header() function to redirect a user to another page. The following PHP code redirects the user to the URL https://stackhowto.com/contact. You can also specify relative URLs.
 

How to redirect to another page in PHP
<?php
	header("Location: https://stackhowto.com/contact");
	exit();
?>
mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

Leave a Reply

Your email address will not be published. Required fields are marked *