PHP Login with Username/Password
问题 How would I edit the PHP below to allow for additional or multiple user names and passwords. For example User1 with Password JHFDE3, User2 with Password LKFW34, etc. From what I have read, an associative array would likely be best. There is no database, it is hardcoded to simply login and be able to view a php page. For the particular code below, how would I make it into an associative array? Thank you. <?php session_start(); //initiates the sessions if ($_POST['submit']) //checks to make