Open Tech Support
Open Tech Support Archives
Back to HomeCommunityReviewsGuidesDownloadsTech LinksMarketplaceContact Us
 »  SITE NAVIGATION
»  OTS Home
»  OTS Forums
»  OTS Archives

»  About our site
»  Search our site
»  Support our site

»  What is this site?
»  Who are we?
 
 
 »  ADVERTISMENT
 
  Pages: 1

PHP Login Help

(Click here to view the original thread with full colors/images)


Posted by: foos05

Ok, I'm making a page that involves a PHP login that access a mysql database. I understand how to make the actual main page with the form that will have action "post" and redirect to "loginCheck.php" or whatever I want to call it. The problem i'm having is in the loginCheck.php file. All this file needs to do is query the mysql db where password = '{$password}' and login = '{login}'. Once it does that, it checks to see if the result array has one entry, if it does, obviously it found a valid login/pw combo and redirects to the user's specific page using location:. The specific problem I'm having is how exactly to do get the login and password from the main page to the loginCheck.php page and work with them to send them to the database??? I really need some quick help with this one. thanks



Posted by: Zakir

Please don't do that. ever, please..... look for a place that shows you how to do that with PHP. you are asking for somebody to hack you. just look up sql injection.



 
Copyright 2000-2008 Open Tech Support.  All Rights Reserved.  Site Design and Development by Tolitz Rosel.