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 ';