can you help me how to make a login php i dont know how to put in my site
can you help me how to make a login php i dont know how to put in my site
Last edited by callumacrae; 02-18-2011 at 03:38 PM. Reason: changed title
This is a question more suited for "Programming Help", so I'm moving it there.
Do you have trouble reaching your site?
Check here first: News and Announcements
Don't forget that x10hosting has an irc server as well. Come and join the fun
server: irc.x10hosting.com, main channel: #x10hosting
There's a lot helpful users there if need help building your site
I see from your website that you're attempting to make one yourself.
You should NOT be using mysql_* - check out PDO or MySQLi
As lemon-tree said, you need to know quite a bit about security to build a good login script. Of the top ten results on google for "php login script", most of them aren't good at all. Using PDO would reduce the risk of SQL injections, but there are other things to consider, such as brute forcing passwords (which your script currently doesn't make any attempt to stop)
You should also be using <input type="password" /> for the password field - as it is, anyone looking over my shoulder can see my password.
Make sure you're using a decent encryption for the password. You probably shouldn't be using md5, as quite a lot of people have broken it.
~Callum
I can customise your phpBB board. Send me a PM.
lynxphp - info, tutorials and scripts
"A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."
Also, I edited the title of this thread to something more descriptive. Please make sure the thread title actually describes the issue in the future.
~Callum
I can customise your phpBB board. Send me a PM.
lynxphp - info, tutorials and scripts
"A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."
Christine, the thread "What are the top 10 common security risk of a new site? What are the countermeasures?" has links to pages describing common security issues. If you're going to implement your own authentication system, you'd better read over them.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.