Web-designer having trouble with php to .txt function!
Posted: Sat May 13, 2006 9:40 am
Hi, I'm new to this forum but I'd greatly appreciate some help.
Most of the web-sites I design have news sections. Currently they work in that I create a dynamic text box in flash, populate it with text by linking it to a html file in the same directory, and give it styles by linking it to a css file in the same directory also.
At present, the dynamic text box in flash knows which bits of text to assign which style to as I specify them in the html file, as follows;
<body>
<header>We have a new shop opening in Hammersmith!</header>
<date>15th May 2005</date>
<main_text>blah blah blah blah blah</main_text>
</body>
The css tags "header", "date" and "main_text" are specified in the css file. So, that works fine and it looks great. However, I have re-designed this process so that I simple fill in a php form, with three text fields for the header, the date, and the main text, click a submit button and it opens a .txt file and writes to it using the fopen, fwrite and "a" (append) functions. The .txt file is then closed and saved and the php page I have just filled in refreshes. This works great and I have linked the dynamic text box in flas to the text file, and it displays all the text I input into the form superbly.
However there are no styles and it just looks ugly! Is there any way for me to include styles in this process, so that the end result in the dynamic text box in flash not only displays text but also displays styles?
I am desperate for this to be finished so my clients can start updating their sites themselves. Here is a zip file containing the files mentioned above, so you can have a look for yourself.
http://www.officialryantaylor.com/php.zip
Also, if anyone knows someone who provides a service that could resolve this problem I'd be happy to pay. Even happier of course if it could be resolved here!
Thanks
Most of the web-sites I design have news sections. Currently they work in that I create a dynamic text box in flash, populate it with text by linking it to a html file in the same directory, and give it styles by linking it to a css file in the same directory also.
At present, the dynamic text box in flash knows which bits of text to assign which style to as I specify them in the html file, as follows;
<body>
<header>We have a new shop opening in Hammersmith!</header>
<date>15th May 2005</date>
<main_text>blah blah blah blah blah</main_text>
</body>
The css tags "header", "date" and "main_text" are specified in the css file. So, that works fine and it looks great. However, I have re-designed this process so that I simple fill in a php form, with three text fields for the header, the date, and the main text, click a submit button and it opens a .txt file and writes to it using the fopen, fwrite and "a" (append) functions. The .txt file is then closed and saved and the php page I have just filled in refreshes. This works great and I have linked the dynamic text box in flas to the text file, and it displays all the text I input into the form superbly.
However there are no styles and it just looks ugly! Is there any way for me to include styles in this process, so that the end result in the dynamic text box in flash not only displays text but also displays styles?
I am desperate for this to be finished so my clients can start updating their sites themselves. Here is a zip file containing the files mentioned above, so you can have a look for yourself.
http://www.officialryantaylor.com/php.zip
Also, if anyone knows someone who provides a service that could resolve this problem I'd be happy to pay. Even happier of course if it could be resolved here!
Thanks