jagguy Posted June 28, 2007 Share Posted June 28, 2007 Hi, Can I create a popup login screen for users of my website and password with php? Quote Link to comment Share on other sites More sharing options...
madspof Posted June 28, 2007 Share Posted June 28, 2007 yes are you using a database or a flat file system Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted June 28, 2007 Share Posted June 28, 2007 you cant create the popup with php. popups are made with javascript using the window.open function i believe. but you can make a form inside the popup no problems. Quote Link to comment Share on other sites More sharing options...
madspof Posted June 28, 2007 Share Posted June 28, 2007 i no that buti think he meens can he have the login screen as a popup Quote Link to comment Share on other sites More sharing options...
jagguy Posted June 29, 2007 Author Share Posted June 29, 2007 I am using a database mysql. Now if I have a login screen do I have a table for each user or just a large table with all users . Each user has data specific to them. Quote Link to comment Share on other sites More sharing options...
waz Posted June 29, 2007 Share Posted June 29, 2007 using a pop up system seems a messy way to do it when you can use a php page and have it layed out nicerly and you would have to use a javaprompt to take details. then transfer to php which is a pain in itself using a hidden form value and get. Waz I personally would use php. Quote Link to comment Share on other sites More sharing options...
jagguy Posted June 29, 2007 Author Share Posted June 29, 2007 I can do it that way but here are my problems. q)I don't want the user to get access to unrestricted pages by typing in an url of one. How can I stop this? q) Having the passwords stored in a table or a table for each login and password user? q)what is wrong witha php popup , does this provide extra secuirty problems? I still can't find the code to do this. Quote Link to comment Share on other sites More sharing options...
waz Posted June 29, 2007 Share Posted June 29, 2007 q)I don't want the user to get access to unrestricted pages by typing in an url of one. How can I stop this? A) You set a session variable once they have confirmed the login details at top if secure page do some like if(isset($_session['secure'])) { }else { //redirect them back to login that way they will allways be longed in } q) Having the passwords stored in a table or a table for each login and password user? A) Again yes store them in a table one table all passwords i personally would use a extra field to set level permissions if you only want them to get access to certain areas q)what is wrong witha php popup , does this provide extra secuirty problems? I still can't find the code to do this. a) again it really depends on how you do it if its all java it can becuse you could see the database details in php u can not. again if you want to use a java pop up use a hidden form value to pass between the 2 langs is way i would do it if you cant find a good example of how to do this ill try and dig one up Waz hope this helps Quote Link to comment Share on other sites More sharing options...
jagguy Posted June 30, 2007 Author Share Posted June 30, 2007 thanks for the replies they have helped. q)hwo do I keep the mysql tables locked for any updates/deletes etc made on it. I haven't done much tranaction processing with mysql but I know how to do it in theory . Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted June 30, 2007 Share Posted June 30, 2007 hwo do I keep the mysql tables locked for any updates/deletes etc made on it Why would you want to lock it? You are the only one with access to do those things...as long as you keep your site protected from SQL injections. Quote Link to comment Share on other sites More sharing options...
jagguy Posted June 30, 2007 Author Share Posted June 30, 2007 The users will be uploading stuff and messages. I need to store details about this in mysql. I have to have transaction processing as I am not the only user. Quote Link to comment 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.