# Adding PHP Login to Admin Page

**URL:** <https://forum.kirupa.com/t/adding-php-login-to-admin-page/253889>\
**Category:** programming\
**Created:** [March 6, 2008, 3:03am UTC](https://forum.kirupa.com/t/adding-php-login-to-admin-page/253889 "2008-03-06T03:03:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [March 6, 2008, 3:03am UTC](https://forum.kirupa.com/t/adding-php-login-to-admin-page/253889/1 "2008-03-06T03:03:39Z")

</div>

I made some modifications to the following script:

[http://www.php-editors.com/articles/php\_textfile.php](http://www.php-editors.com/articles/php_textfile.php)

Now when a user is added to the textfile, the password is encrypted. Now I want to create a login page that accesses this textfile and looks for a match. I have a PHP script that is similar (login.php), but needs to be modified to work with the data as written by the admin page. Can someone take a look and tell me how to access the textfile data by $clientname (I think).

PS: I guess the title of this thread should be “Adding a PHP Login page (already have Admin page)”
