How to redirect from php page to another php page?

For redirecting, you can use the PHP header() function like so :

header("Location : example.php");

That'll redirect to example.php
  • 17 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

I'm new to PHP, where should I start?

You can refer the following link to understand about PHP code,The official PHP web site as a lot...

I have starting to know a bit of PHP, now how do I...?

---------------------------Introductory PHP Tutorials :---------------------------(in no...

What's the best way to start writing a PHP program?

Firstly figure out, on paper, exactly what you want to do. Otherwise, you'll just be coding...

How can I call a command line executable from within PHP?

Check out the "Program Execution functions" here :...