I'm really starting to get the hang of PHP, but I would still only consider myself intermediate at best. My fiancé and I are looking at different houses right now and I thought I would make a simple little web site to help us keep track of the different properties we're considering. Basically, I just want a page that will display the different houses (and their related info) in tables. I could easily do this with HTML, but instead of having to code a bunch of tables, I thought it would be easier to simply create a form and use some PHP. For the most part, this is a lot easier, but I've encountered one small problem...if I enter more than one line of data into my Notes textarea, it causes the info to be broken up into multiple tables, and any data entered afterwards is displayed incorrectly. Take a look
here for an example.
At the moment, I have three pages...
1.
addhouse.html contains a form that allows me to enter whatever info I want.
2.
addhouse.php stores the form info into a textfile (houselist.txt). More functionality will be added later.
3.
showhouses.php retrieves the info from houselist.txt and displays it in tables.
If I only enter one line in the textarea, everything works perfectly. I can make the info display on multliple lines if I manually insert line breaks when entering the data, but I would like to avoid that. When I press the Enter key, is there any way to make that translate into a
/r/n line break?
To avoid major side-scrolling, I attached all of my files in a zip. And if it helps at all, I also attached what is currently in my
houselist.txt file. It holds the information that is on the example page I linked to earlier. It should all be one line, not two...
I know it would probably be better to enter everything into a MySQL database instead (and it might be easier to work with), but I would rather use this method because it's a lot easier to manually change data if necessary.
[recovering space - attachment deleted by admin]