Home >Backend Development >PHP Tutorial > CI框架怎么设置跳转的提示语句

CI框架怎么设置跳转的提示语句

WBOY
WBOYOriginal
2016-06-13 13:22:211118browse

CI框架如何设置跳转的提示语句?
做一个注册页面,注册后跳转到首页,用redirect('/index.php','location');

现在想在注册成功后加个“注册成功”的提示再掉转到首页该怎么做?

------解决方案--------------------

探讨
做一个注册页面,注册后跳转到首页,用redirect('/index.php','location');

现在想在注册成功后加个“注册成功”的提示再掉转到首页该怎么做?

------解决方案--------------------
探讨

引用:
做一个注册页面,注册后跳转到首页,用redirect('/index.php','location');

现在想在注册成功后加个“注册成功”的提示再掉转到首页该怎么做?


那么表单的提交就不能submit了,必须监听onsubmit事件,用ajax提交表单,成功后JS设置一下页面的内容提示N秒跳转,setTimeout几秒后location.href跳转走。……
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn