如果登录成功,如何打开弹出窗口 [英] How to open a popup window if login successful

查看:107
本文介绍了如果登录成功,如何打开弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我目前正在为学校做一个php应用程序,问题是这样,如果登录成功并如何自动重定向到另一个页面(例如index.php),我怎么能出现一个弹出窗口,让比方说,5秒?


我的登录页面如下代码(我是葡萄牙语,所以有些东西在PT,但只是说,我会翻译),

展开 | 选择 | Wrap | 行号

解决方案

Hi Slaxer,


代码块

展开 | 选择 | Wrap | 行号



如果登录成功,我怎么能出现一个弹出窗口并自动重定向到另一个页面(例如index.php)



hm,如果你重定向,弹出窗口的重点是什么?


PS。不要让DreamWeaver制作你的PHP代码,这总是让人感觉很痛苦。如果你想要免受SQL注入的影响,最好使用Prepared Statements。


Dormilich


你好伙伴,


我已经从网上检索了我的代码。这只是一个学校的工作,我仍然是一个新手。任何提示都将不胜感激。


你好computerfox,


你能写出代码应该如何吗?我试过但它还没有工作。


感谢两者;)


和平,

Slaxer13

Hi guys, i am currently doing a php app for school and the question is this, how can i make a popup window appear if the login is successful and redirect to another page (for example index.php) automatically in, lets say, 5 secs?

My login page as the following code (i am portuguese so some things are in PT but just say and i will translate),

Expand|Select|Wrap|Line Numbers

解决方案

Hi Slaxer,

In the code block

Expand|Select|Wrap|Line Numbers


how can i make a popup window appear if the login is successful and redirect to another page (for example index.php) automatically

hm, what is the point of a popup if you redirect anyways?

PS. Don?t let DreamWeaver make your PHP code, that?s always a sore sight. better use Prepared Statements if you want to be protected from SQL Injection.


Dormilich

Hi mate,

The code i have has been retrieved from the web. This is just a school work and i''m still a newbie at this. Any tips will be much appreciated.

Hi computerfox,

Could you write how the code should be? i tried but it hasn''t been working.

Thanks to both ;)

Peace,
Slaxer13


这篇关于如果登录成功,如何打开弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆