i want to make a pop window like in javascript, when a user enters invalid username or password, a window appears requesting valid information. how can i do that please?
camillee
0
Newbie Poster
Recommended Answers
Jump to PostYou can use js code in echo statement,
Logic:<? if(! valid username or password) { echo '<script language="javascript">alert("Please enter valid username and password");</script>'; header("Location:currentpage.php"); exit; } else { //--- continue..... } ?>
Jump to PostHmm. The first example gives a vanilla javascript alert - easy, but ugly (no offence). The second gives a php response hard coded into the page. This can't be closed unless by js.
IMO, you could use lightbox-type popups to hold your login form / message - e.g. facebox. …
All 9 Replies
vibhaJ
126
Master Poster
Grantism
0
Newbie Poster
jdog006
0
Newbie Poster
diafol
rajarajan2017
diafol
chino_klil
0
Newbie Poster
chino_klil
0
Newbie Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.