Please help me jump to the php page

Source: Internet
Author: User
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 ");

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.