sigwhe Posted November 16, 2011 Share Posted November 16, 2011 I am trying to create a very basic webpage (for local use) that will allow me to add records to a table that I can then come back to at a later date. Essentially, I want a mini spreadsheet in a HTML file. Is this possible? I know that I could do this using PHP, but I just want this for local use, so I do not want / need to upload it anywhere. Plus, I am not linking to any database, I am hoping just to have the table saved into the HTML file. I currently have a JS script that will add rows to my table (with predetermined information - not 100% what I am wanting), but once I close the window, that information is not saved. If anyone could at least point me in the right direction, that would be good (hopefully this all makes sense) Quote Link to comment https://forums.phpfreaks.com/topic/251234-maintaining-tables-using-html/ Share on other sites More sharing options...
joel24 Posted November 16, 2011 Share Posted November 16, 2011 set up XAMPP on your computer. You can run PHP scripts and have a MySQL database all running locally. Javascript is not allowed to write to the harddrive (update files) for obvious security reasons. Quote Link to comment https://forums.phpfreaks.com/topic/251234-maintaining-tables-using-html/#findComment-1288616 Share on other sites More sharing options...
AyKay47 Posted November 16, 2011 Share Posted November 16, 2011 the most efficient way to do this would be to use a database, which I know that you don't want to do.. you could also save the data into a txt file or perhaps using SESSIONS, depending on the amount of data you want to save. txt files are probably the way to go if you do not want to use a database here. Save the data to a txt file, and grab the data to populate your HTML spreadsheet Quote Link to comment https://forums.phpfreaks.com/topic/251234-maintaining-tables-using-html/#findComment-1288647 Share on other sites More sharing options...
cypher86 Posted November 16, 2011 Share Posted November 16, 2011 i agree you can create a txt or even an xml file, then create a simple parser in order to read it. (custom if you use txt, simplexml for xml files) Quote Link to comment https://forums.phpfreaks.com/topic/251234-maintaining-tables-using-html/#findComment-1288648 Share on other sites More sharing options...
cyberRobot Posted November 16, 2011 Share Posted November 16, 2011 Is there a reason, you need JavaScript to maintain the table? You could just manually maintain the table in the HTML code. Also, does it need to be a web page? Maybe you could use Excel or some other spreadsheet software. Quote Link to comment https://forums.phpfreaks.com/topic/251234-maintaining-tables-using-html/#findComment-1288658 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.