I've tried practically everything it feels like, and now I registered for this forum just to get help.
Problem: I have a textarea with a name of "content" in a form, when that form is submitted to a php page, $_POST['content'] (I call it like this for testing only) exists, but is empty. I tried print_r($_POST); and "content" returns empty. When I disable CKEditor, everything works fine.
Here is a snippet of the code I use:
Why would this be? Any help would be much appreciated, and I hope I explained myself well enough.
EDIT: the editor is being called like this
Problem: I have a textarea with a name of "content" in a form, when that form is submitted to a php page, $_POST['content'] (I call it like this for testing only) exists, but is empty. I tried print_r($_POST); and "content" returns empty. When I disable CKEditor, everything works fine.
Here is a snippet of the code I use:
<textarea style="width: 606px; height: 400px;margin-bottom: 5px;overflow: scroll;" id="full_editor" name="content"></textarea>
Why would this be? Any help would be much appreciated, and I hope I explained myself well enough.
EDIT: the editor is being called like this
<script type="text/javascript">
$(document).ready(function(){
if($("#full_editor").length > 0){
$("#full_editor").ckeditor();
}
})
</script>
Re: Textarea returning empty in php POST
to get the content from the editor.
Re: Textarea returning empty in php POST
http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Integration#Step_3:_Saving_the_Editor_Data
Re: Textarea returning empty in php POST
editor = CKEDITOR.appendTo( 'wysiwyg', { skin : 'v2', width : <%=pageMainSize%>, height : 400, font_names: '<%=CKFontNames%>', removePlugins: 'elementspath', extraPlugins : 'embed,ASPSpellCheck,YouTube', resize_enabled: false, enterMode: 2, // 1 = <P>, 2= <BR>, 3 = <DIV> shiftEnterMode: 1, // 1 = <P>, 2= <BR>, 3 = <DIV> toolbar: [ ['Source','ASPSpellCheck'], ['Cut','Copy','Paste','PasteText','PasteFromWord','Print'], ['Undo','Redo','Find','Replace','SelectAll','RemoveFormat'], ['BidiLtr', 'BidiRtl'], ['Bold','Italic','Underline','Strike','Subscript','Superscript'], ['NumberedList','BulletedList','Outdent','Indent','Blockquote','CreateDiv'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink','Anchor'], ['Image','embed','Flash','YouTube','Table','HorizontalRule','Smiley','SpecialChar'], ['TextColor','BGColor'], ['Maximize', 'ShowBlocks','About'], '/', ['Format','Font','FontSize'] ] });document.getElementById('msgBlog').value = editor.getData();