Hello, I am very new to php and I just began yesterday. I am having trouble with a script I am writing, and any support would be appreciated.
I personally think it's just my POST data acting up, but I don't know.
The news is all held in a text database located at www.purplenum.com/database/news.txt.
The Add News page in the Admin CP works perfectly fine, and is password locked with a non-debug password (You'll soon see why I say this).
The Edit News page has a debug password of well, password. Here is the source for all of the pages, and go to www.purplenum.com/admin/edit_news.php, enter the password, submit it, and you'll see what the problem is.
www.purplenum.com/admin/edit_news.txt
www.purplenum.com/admin/edit_news_auth.txt
www.purplenum.com/admin/edit_news_post.txt
The above files are all of the source files for the pages, maybe someone can see something wrong with it because I have no clue what is wrong.
The reason I have a seperate auth page is because when I used auth on the top of my edit_news_post.php page it ALWAYS returned with an incorrect password. So I think this problem I'm having now is the result of a POST data problem.
Thank you for your time, and hopefully someone can see something I'm missing. And please don't flame me if I did something horribly stupid, I'm still new to this.
Edit: Removing the auth page fixes the problem, but I need password authentification somehow. Any ideas?