Hi,
I hope this is the right place for my post.
I am writting a PHP application and want to use a rich text editor on my site (much like the one I am using to write this post ).
I've found nicEdit which seems easy to implement and exactly what I am after. Unfortunetly I have hit a snag though. I am submitting my form which then goes to a PHP script that reads the values from the form and writes them to as database.
Before I implemented nicEdit (and my TEXTAREAs were normal ones) this worked fine. All I have done is convert the TEXTAREAs to nicEdit ones using the below code:
<script type="text/javascript" src="JS/nicEdit.js"></script> <script type="text/javascript">
//<![CDATA[
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
//]]>
</script>
Everything still works but when I enter text in the TEXTAREA my PHP reads it as empty. I am using the following statement to read the value from the form:
$CampaignDetails = $_POST["txtCampaignDetails"];
And my TEXTAREA is defined like this:
<textarea id="txtCampaignDetails" name="txtCampaignDetails" class="textInput" cols="70" rows="8"></textarea>
I've tried removing the nicEdit code and it works fine again. Do I have to read the form in a slightly different way? Any help would be appreciated.
Thanks,
Brian