Forum Moderators: coopster
Thanks
What I am doing.
I have a form, with these fields:
Name //The name, appear as link
Short Name // the filename, where the link leads
ID // so it displays with a certain event only
Description // copied from MS Word, with tables, thats the most important thing. Saves this to a file called for example mydad.html
The form saves Name, short name, and ID to MySQL DB, so I can pull out the info with a query and assign the variables to a link, so it lists for example:
Me Myself My Dad My Mom
... as links, when clicked on, a JS Popup opens with the saved file from shortname. I hope you get the idea.
In any case, in both FCKeditor and HTMLArea, when I wrote a text in my description, for example the text was "Testing 1,2,3" and assigned it a red color, size of Large, and centered it, it appeared in Green, Medium sized letters, and aligned to the left.
I have no clue what to do, on top of that, the tables came out all screwed up pasted in from Word.
Someone please help, I honestly dont know what to do and why is that problem appearing. THanks.
PS - I just looked up FrontPage Express, its a desktop based editor, I do not want that, I want it in the form.
If I insert the "description" field into MySQL DB, here's the information that gets inputted:
<p align="center"><font color="#993300" size="6"><strong>ALEXI KASATANOV</strong></font></p>
While, this is the code that gets written to the file:
<p align=\"center\"><font color=\"#993300\" size=\"6\"><strong>ALEXI KASATANOV</strong></font></p>
The DB code looks 100% what it was in the WYSIWYG Editor, while the fwrite one looks completely screwed up because of the "\", can anyone tell me why are they written?