|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
WYSIWYG & MySQL..?
Not sure if this is the right place, but I'm having some problems getting a WYSIWYG text editor script to insert the data into my MySQL database.. Originally I had a text field called "article" to insert into the database, which worked fine..
I found a script to turn the textarea into a WYSIWYG form, and I called it the same as the original text area, but it's not inserting it into the dbase.. ![]() This is the first time I've used WYSIWYG, and I'm hoping someone could help me fix it ![]() The effected code is: Code:
<script language="JavaScript" type="text/javascript" src="wysiwyg.js">
</script>
<form action="submit_news.php" method="POST" name="newswire">
<textarea id="article" name="article" style="height: 170px; width: 500px;">
</textarea>
<script language="javascript1.2">
generate_wysiwyg('article');
</script>
</form>
|
|
#2
|
|||
|
|||
|
Oh and..
I can't post the code for the javascript file as it's too large.. But the URL for the file is:
http://www.souliedesigns.com/clients/SharonBennie/admin/wysiwyg.js I hope someone can help me! |
|
#3
|
||||
|
||||
|
Is there an error you age getting?
Are you able to narrow it down to whether or not the JAvascript is stopping the page from submitting, or if your server-side PHP is choking somewhere.
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#4
|
|||
|
|||
|
Quote:
It doesn't display any error, everything else inserts into the database ok, except for the "articles" textarea (which is now the wysiwyg form), when I check my dbase table, there's nothing in the "article" field.. Am I missing something to insert the wysiwyg form textarea into the database? ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > WYSIWYG & MySQL..? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|