MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old March 13th, 2007, 11:03 PM
Souliebaby Souliebaby is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 62 Souliebaby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 24 m 49 sec
Reputation Power: 4
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>

Reply With Quote
  #2  
Old March 13th, 2007, 11:22 PM
Souliebaby Souliebaby is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 62 Souliebaby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 24 m 49 sec
Reputation Power: 4
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!

Reply With Quote
  #3  
Old March 14th, 2007, 08:28 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
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

Reply With Quote
  #4  
Old March 14th, 2007, 04:57 PM
Souliebaby Souliebaby is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 62 Souliebaby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 24 m 49 sec
Reputation Power: 4
Quote:
Originally Posted by MadCowDzz
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.


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?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > WYSIWYG & MySQL..?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway