In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to modify the jump link after the DEDECMS custom form is submitted. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Dedecms custom form. When you click submit, you will jump to the home page by default. We will open plus/diy.php with the following code:
The code is as follows:
If ($dsql- > executenonequery ($query)) {$id=$ dsql- > GetLastID (); if ($diy- > public = = 2) {/ / diy.php?action=view&diyid= {$diy- > diyid} & id=$id $goto = "diy.php?action=list&diyid= {$diy- > diyid}"; $bkmsg = 'published successfully, now turn to the list page …' ;} else {$goto =! emptyempty ($cfg_cmspath)? $cfg_cmspath:'/'; $bkmsg = 'published successfully, please wait for the administrator to deal with it.' ;} showmsg ($bkmsg, $goto);}
Find this line:
The code is as follows:
$goto =! empty ($cfg_cmspath)? $cfg_cmspath:'/'
It means to jump to the front page. Let's modify it, for example:
$goto = "/ abc.htm"
You can jump to the page you want, if you want to jump to the current page:
The code is as follows:
If ($dsql- > executenonequery ($query)) {$id=$ dsql- > GetLastID (); if ($diy- > public = = 2) {/ / diy.php?action=view&diyid= {$diy- > diyid} & id=$id $goto = "diy.php?action=list&diyid= {$diy- > diyid}"; $bkmsg = 'published successfully, now turn to the list page …' ; echo ";} else {$goto =! emptyempty ($cfg_cmspath)? $cfg_cmspath:'/'; $bkmsg = 'published successfully, please wait for the administrator to deal with it.' Showmsg ($bkmsg, $goto); Thank you for reading! About the DEDECMS custom form submitted how to modify the jump link to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.