Please help me jump to the php page. I am a newcomer who just learned php these days. how can I jump to another page in the php method function. I used the CI framework, for example, the controller login. php contains A function & nbsp; A () as the login method. Log on to the homepage. Homepage controller is main. php ------ solution -------------------- Add form in function & nbsp; ()
I am a newcomer who just learned php these days. how can I jump to another page in the php method function. My CI framework
For example, the login. php controller has A function A () as the login method. Log on to the homepage. The homepage controller is main. php.
------ Solution --------------------
Add in function ()
Form name = "XX" method = "post" action = "main. php"
------ Solution --------------------
Function ()
{
Redirect ('/main ');
}
Function ()
{
Echo "script window. location. href = '/main'; script";
}
------ Solution --------------------
You can use js or php
Js
Window. location. href
Php
Header ("Location: xxx ");