help needed: how to update php values?

by 1 replies
2
Hi

I'm php newbie. For example, I have a php file like this:

php Code:

<?
$value1="content1";
$value2="content2";
?>

Now I want to create a HTML site with 2 input forms allow me change the values (content1, content2) without edit above file manually. I can enter new data and click update button, then it will update new values of above php file.

How do I create this file? There are no SQL DB or complicated functions.

Thank you
#programming #needed #php #update #values
  • If all you need to do is keep a record of values, your best bet is to allow your form to post to the server, then retrieve those values, and save them inside of a database. Here is a tutorial to get you started: http://www.w3schools.com/php/php_post.asp

Next Topics on Trending Feed