Javascript 无法从ckeditor完全检索php中的文本
HTML代码Javascript 无法从ckeditor完全检索php中的文本,javascript,php,jquery,html,ajax,Javascript,Php,Jquery,Html,Ajax,HTML代码 <form name='form' method='post'> <textarea name='ckeditor'></textarea> <input type='submit' name='submit' value='Save' /> <form> PHP代码 <?php print_r($_POST["full_text"]; ?> $。对于一个简单的post请求,post会更容易
<form name='form' method='post'>
<textarea name='ckeditor'></textarea>
<input type='submit' name='submit' value='Save' />
<form>
PHP代码
<?php
print_r($_POST["full_text"];
?>
$。对于一个简单的post请求,post
会更容易
$.post("someurl", {full_text: $editor}, function(response){
alert(response);
})
$.post
对于一个简单的post请求来说更容易
$.post("someurl", {full_text: $editor}, function(response){
alert(response);
})
您是否尝试将包含data=“full_text=“+$editor”的行更改为data:{full_text:$editor}?是的,我尝试过。仍然没有结果。但我发现如果只使用print\r($\u POST);它显示全文您是否尝试将包含data=“full_text=“+$editor”的行更改为data:{full_text:$editor}?是的,我尝试过。仍然没有结果。但我发现如果只使用print\r($\u POST);它显示全文