| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Oct 2005 Location: Milford MA
Posts: 692
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Reset a remote string [+rep, +NP$] Im making a SQL-Less CMS in a certant sence, and i need a function to update the password var in another file. Does anyone know a function to do this? I'll add rep to people who try to help, and donate some NP$ |
| |
| | #2 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hmm... Could have it required to enter both the old password and new password, then do something like below: PHP Code: |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Oct 2005 Location: Milford MA
Posts: 692
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ^Thanks. I got this idea: PHP Code: PHP Code: |
| |
| | #4 (permalink) |
| NamePros Regular Join Date: Aug 2005 Location: NY, USA
Posts: 610
![]() ![]() ![]() ![]() ![]() ![]() | I would store user data in a flatfile like this: id|level|username|passwordhash|email|otherinfo ex: Code: 0|admin|admin|098f6bcd4621d373cade4e832627b4f6|blah@test.com|blah 1|user|bob|098f6bcd4621d373cade4e832627b4f6|blah@test.com|blah 2|user|joe|098f6bcd4621d373cade4e832627b4f6|blah@test.com|blah PHP Code:
__________________ ask me about the internet |
| |
| | THREAD STARTER #6 (permalink) | ||||
| NamePros Regular Join Date: Oct 2005 Location: Milford MA
Posts: 692
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
How would i make that multiple users? like if i wanted to do $userid = $input['id']; how would i? | ||||
| |