Greetings, all.
I may be shooting for the impossible here, but I'm willing to give this question a shot.
Past day or two I had been working on a form where you could update news articles into a database that other pages could pull out depending on it's category. I wanted to make the formatting of the article as convenient as possible, and came up with a form where you could highlight text and click buttons to apply the changes (IE: Bold, Italic, Colors). Thing is, I used a div box, so you could see the change(Kind of like E-mail editors).
<STYLE>
<!--
div.edit { position: absolute; width: 500px;
height: 400px; left: 10px; top:140px; overflow-y:
auto; font-size: 10pt; font-family: Arial; text-align:
Left; text-indent: 2px; line-height: 100%; clip:
rect(0 500 400 0); list-style-type: font-family; float:
left; border-style: solid; border-width: 1px; padding:
4px; }
-->
</STYLE>
(I put line breaks in the above code because the side scrolling was scary.)
and where I want the text to be entered in:
<div id='article' class='edit' ContentEditable>
</div>
Editing stuff is done with Javascript.
Here's my problem: It doesn't seem to be carrying over to the processing page. I got the page itself working nicely, but when I try to send it, the process page turns up my error message that nothing was entered in the article field.
Am I doing something wrong, or is there a way that I can store the source (article.innerHTML) of the formatted text entered in the box into a PHP variable manually? Or would I be better off just using a textarea and inserting codes with buttons (like the forums) instead?
Help is very much appreciated.
Regards,
Cojiro