Hi, I just downloaded TinyMCE WYSIWYG, and I am doing an insert query into MySQL using PHP.
Everytime I submit the form it returns false. and if I toke out the textarea everything goes ok.
I am pretty sure it's TinyMCE. Have any of you came across this problem, am I missing something?
The code works fine when I load the page, TineMCE looks good, but when I submit the form it simply fails.
Please advise,
and thank you in advance
FarrisFahad
FarrisFahad
86
Junior Poster
Premium Member
Recommended Answers
Jump to PostI don't have any experience with TinyMCE, but I looked into it when choosing an editor to go with for DaniWeb. Can you post your code and I'll take a look at it?
So you're saying everything works fine if you replace TinyMCE with a standard textbox, but not with …
Jump to PostWell it's good that it's not taking you to Third.php, because at least the title and body of the post are being posted by the form. Try enclosing
$_POST['text']
with mysql_real_escape_string() the same way you are doing with the post title.
All 8 Replies
Dani
4,074
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
FarrisFahad
86
Junior Poster
Premium Member
Dani
4,074
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
FarrisFahad
86
Junior Poster
Premium Member
Szabi Zsoldos
26
Learner and helper guy
FarrisFahad
86
Junior Poster
Premium Member
Szabi Zsoldos
26
Learner and helper guy
FarrisFahad
86
Junior Poster
Premium Member
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.