Home > Article > CMS Tutorial > What do the parameters in the DedeCMS prompt refer to?
The Showmsg function in DEDECMS is used to display the returned prompt information and jump to the corresponding page, but most novices don't know how to use it, so this article will focus on explaining it.
First look at the format of showmsg:
ShowMsg($msg,$gourl,$onlymsg=0,$limittime=0)
Give another example of showmsg:
ShowMsg("成功登录,5秒钟后转向系统主页...","index.php",0,2000);
Related recommendations: "dedecms usage tutorial"
Introduction to the usage and parameters of Showmsg in DEDECMS
Detailed explanation of parameters: The showmsg parameter is separated by English, (comma):
$msg parameter It is the information to be returned, which is the question of the prompt.
The $gourl parameter is the page to be returned after the prompt is completed. The specific parameters are:
-1 代表返回上一页 index.php 返回指定的index.php页面 javascript:window.opener=null;window.open('','_self');window.close(); 关闭当前提示窗口
$onlymsg parameter is the display method of the prompt. The specific parameters are:
$onlymsg=0 则以页面显示 $onlymsg<>0 则以对话框的形式进行显示 $limittime参数是提示出现的秒数,以毫秒为单位;1000就是1秒。
The above is the detailed content of What do the parameters in the DedeCMS prompt refer to?. For more information, please follow other related articles on the PHP Chinese website!