Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-02-07 09:19:12

netzbauer
New member
Registered: 2006-02-07
Posts: 4

How to save the written text in a mysql database?

I'm sorry, i have searched for hours but i didn't find anything. Excuse my bad english, too.

Well, i realy love this editor and have worked with old areaedit for a long time. Now i want the new xinha to save the inserted text in a database, with areaedit, that was no problem.

When starting the editor, i catch the text to edit from my database and insert it into the editor window. Thats no problem.

  <form id="editors_here">
    <textarea id="myTextArea" name="myTextArea" rows="10" cols="80" style="width:100%"></textarea>
  </form>
        <div id="lipsum" style="display:none">
          <?php echo $text; ?>
        </div>
        <script src="full_example.js"></script>

Now i need a submit-button, which calls my script to save the work. When i modify the form like:

  <form id="editors_here" action="save.php">
    <textarea id="myTextArea" name="myTextArea" rows="10" cols="80" style="width:100%"></textarea>
    <input type="Submit" name="save_me" value="Save the Text">
  </form>

... it doesnt take any effect. Only the Button which shows the html source in a alert-windows is visible.

How can I change this?

Thanks for any help.

Offline

#2 2006-02-07 09:41:35

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: How to save the written text in a mysql database?


James Sleeman

Offline

#3 2006-02-07 12:24:21

netzbauer
New member
Registered: 2006-02-07
Posts: 4

Re: How to save the written text in a mysql database?

Ok, i 've done it. Think the problem was, that i 've tried to use the full_example.html. Now i edited another one and that works fine.

Offline

Board footer

Powered by FluxBB