When my message is over, click on an alert to return to the previous page

Source: Internet
Author: User
When my message is over, click on an alert to return to the previous page
$data [' Univ_name ']= $id;
$data [' user_name ']= $user _name;
$data [' user_comment ']=$_post[' user_comment '];
$data [' User_comment_good ']= $score;
$data [' User_comment_money ']=$_post[' User_comment_money '];
$data [' user_comment_date ']=$_post[' user_comment_date '];
$User->add ($data);
$result = $User->select ();
$this->success ("message success");
}
$this->user_state = $user _state;
$this->display ();
This is a message code, when I succeed $this->success ("message success"); It will jump out of a page, this page does not look good,
Now I want to jump out of an alert or jump page, but when I click on Alert's OK button I want it to return to the page where I wrote the message.
Exactly that is I want to get success URL so that my alert can also be implemented back to the previous page of the effect of how to do? It's better to have a code or something. If everyone says I don't understand, I can still study the code.
------Solution--------------------
$this->success ("message success");
Change to

Echo ';
  • 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.