PHP Admin Edit Variable

seaside

New Member
Messages
14
Reaction score
0
Points
0
I am new to PHP, and I have this website. I want to know if i can have a page that is password protected (i know how to do that part), where the user can edit a variable from a text area.

Example: if i had a $news variable, and it would equal the news text on the home page. Is there a way that I can make a Text Area where the admin can write in the news they want, and have it change the variable, so they can change the variable without knowing the code? (With the click of a button)

If so, could you please tell me how? Thanks in advance.

Lets say, for my sake, that it is in a seperate news.php file that will contain just the $news variable, that will be included on the main page. (If that is possible.) Thanks
 
Top