ianhaney Posted January 23, 2013 Share Posted January 23, 2013 Hi I have got a login page and after I log in, it takes me to a page I set in the coding which is great but I want to display some text or have a popup box saying I have successfully logged in, is that possible and if so how do I do it or can someone point me in the right direction please Thank you in advance Ian Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/ Share on other sites More sharing options...
White_Lily Posted January 23, 2013 Share Posted January 23, 2013 Which would most likely suit your site? I find plain text to be boring and not very eye-catching - so a jQuery pop-up box would be better, you could also go the extra mile and make the registration and login forms pop-up boxes aswell, and use jQuery / aJax to validate the forms. Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407679 Share on other sites More sharing options...
ianhaney Posted January 23, 2013 Author Share Posted January 23, 2013 Hi White_Lily Thank you for your reply A jquery pop up box would be better but just not sure how to do it to be honest as the pop up box will need to know that the user has logged in I am not sure how to do that part Ian Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407680 Share on other sites More sharing options...
White_Lily Posted January 23, 2013 Share Posted January 23, 2013 The part where the pop-up box lets the user know something is wrong, or their login was correct is done by using php & aJax together. I can give you an example if it will be useful to you? Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407683 Share on other sites More sharing options...
ianhaney Posted January 23, 2013 Author Share Posted January 23, 2013 Yeah that would be great if you give a example to get me started and will try and figure it out Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407686 Share on other sites More sharing options...
White_Lily Posted January 23, 2013 Share Posted January 23, 2013 Go to the forum development link in my signature, and click "Sign In". The username and pass is: user: Innov8er pass: Dr4g0nhe4rt Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407719 Share on other sites More sharing options...
ianhaney Posted January 23, 2013 Author Share Posted January 23, 2013 Hi I signed in and came up with go to profile so did that and got the following error Not Found The requested URL /profile.php was not found on this server. Apache/2 Server at www.janedealsart.co.uk Port 80 Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407721 Share on other sites More sharing options...
White_Lily Posted January 23, 2013 Share Posted January 23, 2013 Thats because its an example, profile.php isnt created yet, but what im asking is, is that process what you were looking for? Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407724 Share on other sites More sharing options...
ianhaney Posted January 23, 2013 Author Share Posted January 23, 2013 Ahh sorry got ya No sorry I got a login.php page already and just after a user logs in, I need a pop up box similar to what you did but saying login succesful The login.php page is at the following link www.cptevents4.co.uk/login.php Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407728 Share on other sites More sharing options...
White_Lily Posted January 23, 2013 Share Posted January 23, 2013 I will work on one and get back to you then. Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407730 Share on other sites More sharing options...
ianhaney Posted January 23, 2013 Author Share Posted January 23, 2013 Thank you so much for your time and effort, really appreciate it Sorry to be a pain Ian Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407731 Share on other sites More sharing options...
ianhaney Posted January 24, 2013 Author Share Posted January 24, 2013 (edited) Hi you ok White Lily How are things going, just sent you a private message Ian Edited January 24, 2013 by ianhaney Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407880 Share on other sites More sharing options...
Christian F. Posted January 24, 2013 Share Posted January 24, 2013 Personally, I find those kind of pop-ups and messages only annoying. I mean, I know I logged in successfully after I get transferred to the page, and my username is displayed on the page. Anything else is just wasted time, to tell me something I would know anyway. Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407914 Share on other sites More sharing options...
White_Lily Posted January 24, 2013 Share Posted January 24, 2013 An example of what the OP wants is on the Social Network link in my signature, fill out the form and a green pop-up box will appear saying "Go To Login" meaning that you have successfully registered to the site. Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407927 Share on other sites More sharing options...
PFMaBiSmAd Posted January 24, 2013 Share Posted January 24, 2013 I want to display some text You would typically display the username, along with changing the navigation to include a logout link, so that the person would have a way to log out if desired. @White_Lily, having someone go to your site and see an example of a popup, ISN'T a coding example, and doesn't help. The OP specifically asked - but just not sure how to do it to be honest as the pop up box will need to know that the user has logged in Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407929 Share on other sites More sharing options...
White_Lily Posted January 24, 2013 Share Posted January 24, 2013 Actually, it does help, because if its what he wants, then I can give him code for it. Whereas if its not exactly what he wants then posting the code would be a waste of time. Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407931 Share on other sites More sharing options...
ianhaney Posted January 24, 2013 Author Share Posted January 24, 2013 Im bit confused as to what to do really as someone said pop up's are bit ruubish and are off putting and some saying it's good what do you guys think Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407933 Share on other sites More sharing options...
White_Lily Posted January 24, 2013 Share Posted January 24, 2013 It's not really about what we think, it's about what you or the client wants, if you want a pop-up - have a pop-up, if you dont want a pop-up - then dont have one. Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407934 Share on other sites More sharing options...
Jessica Posted January 24, 2013 Share Posted January 24, 2013 Christian is 100% right, it's annoying and pointless. If you do a jQuery sort that fades away at least it doesn't require the user to deal with it. BTW, Clients never know what they want, and usually when they do, they're wrong. Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407935 Share on other sites More sharing options...
ianhaney Posted January 24, 2013 Author Share Posted January 24, 2013 My customer does want a pop up Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407941 Share on other sites More sharing options...
White_Lily Posted January 24, 2013 Share Posted January 24, 2013 is the one on my site what you were looking for or not? Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407946 Share on other sites More sharing options...
ianhaney Posted January 24, 2013 Author Share Posted January 24, 2013 Yeah just need it to be for login and not sign up and then the pop up says you have logged in rather than go to login but am guessing it is easy to change Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407951 Share on other sites More sharing options...
White_Lily Posted January 24, 2013 Share Posted January 24, 2013 it is. and the "Go To Login" button is an image rather than text, so all you have to do is a little extra styling. Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407952 Share on other sites More sharing options...
ianhaney Posted January 24, 2013 Author Share Posted January 24, 2013 Or can I just put the pop up coding in the login.php page and make it so that it knows that the user has logged in Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407954 Share on other sites More sharing options...
ianhaney Posted January 24, 2013 Author Share Posted January 24, 2013 Oh right ok cool Quote Link to comment https://forums.phpfreaks.com/topic/273531-login-form-text-help/#findComment-1407955 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.