|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Insert a popup box for unsuccessful login
I know you guys know this... but, I have a login box on my main page and in Dremweaver you can specify if it is a successful login then go to page ABC.php and if unsuccessful then go to page DEF.php.. but instead of a page DEF.php, I just want a quick pop up box saying the login credentials were unsuccessful.. I'm having problems wiht this pop up box... Thanks
|
|
#2
|
|||
|
|||
|
This is actaully JavaScript mate but then you will have your username/password in your javascript code. (Very unsecure)
If your username/password must be in a database then AJAX is your requirement (javascript working with PHP). There is 1 other option where your PHP script will go to login.php once the form is submitted. The PHP will check if username/password exist then use javascript to create a pop-up box. This is alot easier to do that AJAX if you are dong it for your firstr time.
__________________
- Richie |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Insert a popup box for unsuccessful login |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|