You are not logged in.
Pages: 1
Hello All,
I'm sure this is a newbie question, but I figured I'd ask. ![]()
I've gone ahead and followed all the instructions in the "Newbie Guide" and all of that went well (great guide!).
My question is this...
When the editor first loads, I need the text area to display previously entered text that I have stored in a database.
If I was going to do this with a regular text area, I would just use:
<textarea name="textblock1" id="textblock1" cols="45" rows="5">This is a test.</textarea>Do I do the same thing even with Xinha active?
Thanks for your help... and sorry about the pure newbie question.
On a side note, this script looks amazing!
Offline
Thanks for the reply James!
I'm just not 100% sure what you mean by: "remember to entise (in php, use htmlspecialchars)"
Is that a Xinha config parameter or something I'm supposed to be aware of?
Thanks again! Your help is greatly appreciated. ![]()
Offline
<textarea><?php echo htmlspecialchars('<h1>The HTML</h1><p>You want to edit.</p>'); ?></textarea>Or whatever the equivalent is in your preferred language.
The below however is NOT valid, very common mistake...
<textarea><h1>The HTML</h1><p>You want to edit.</p></textarea>James Sleeman
Offline
Pages: 1