hi,
does anyone know a secure way to login to another page with username and password. i found numerous on google but i don't know which one is good. if anyone has any good source codes please help.
k2k 5 Posting Whiz
Recommended Answers
Jump to PostIt would help if you learned some PHP yourself so you could tell which ones are "good" or not. Most of them use a basic structure of storing login info in session variables, but more advanced ones will use database features to log user activity and/or provide protection against session …
Jump to PostThis is a very minimal login script, but it should work.
This:if(($rec['username']==$userid)&&($rec['password']==$password)){
is a strange way of checking a result; if there is a result, of course username is going to be equal to $userid.
Better done by (in my opinion):if($rec && …
All 8 Replies

diafol
death_oclock 103 Posting Whiz
k2k 5 Posting Whiz
madanbe 0 Newbie Poster
death_oclock 103 Posting Whiz
Andrieux 0 Junior Poster in Training
sacarias40 1 Junior Poster
MehdiAnis 0 Newbie Poster
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.