hausnfranz Posted October 16, 2007 Share Posted October 16, 2007 Hello all, I am quite new to PHP, so wanted to get an overview of what it would take to make a simple budget html/php page. I want to be able to go to a website page and enter in spending for particular budget categories. This means I need to have some total values stored somewhere, then subtract from them when I enter numbers into the textboxes. I would like this information to be always saved, and have a button to reset the totals every month or so. Do I need to set up a mySQL database for this? Or can I just use php to update a text document that I upload to my site? With the text doc, will the values stay updated when I navigate away from the page? Thanks for any help. haus Quote Link to comment https://forums.phpfreaks.com/topic/73411-creating-a-simple-budget-form/ Share on other sites More sharing options...
jd2007 Posted October 16, 2007 Share Posted October 16, 2007 of course, u can also use a static variable. Quote Link to comment https://forums.phpfreaks.com/topic/73411-creating-a-simple-budget-form/#findComment-370349 Share on other sites More sharing options...
pocobueno1388 Posted October 16, 2007 Share Posted October 16, 2007 You could do this with a text document, but depending on the situation you may want to use a database. Is this site going to be ONLY for you, or are multiple people going to be using this? If it's only for a small amount of people, then it would be fine to use a text document if you choose to. Quote Link to comment https://forums.phpfreaks.com/topic/73411-creating-a-simple-budget-form/#findComment-370351 Share on other sites More sharing options...
hausnfranz Posted October 16, 2007 Author Share Posted October 16, 2007 yes, its just for me and my wm6 htcp4350. I haven't really worked with mySQL, apache or php, so I am waying that VS setting this up in a text doc. Anyone have a helpful tutorial on storing php numbers in a text doc and then differencing and updating the variables based on textfield inputs? Or something similar to set me in the right direction? Quote Link to comment https://forums.phpfreaks.com/topic/73411-creating-a-simple-budget-form/#findComment-370369 Share on other sites More sharing options...
pocobueno1388 Posted October 16, 2007 Share Posted October 16, 2007 Write to a file http://www.tizag.com/phpT/filewrite.php Working with forms http://www.tizag.com/phpT/forms.php Quote Link to comment https://forums.phpfreaks.com/topic/73411-creating-a-simple-budget-form/#findComment-370709 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.