资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

php编辑数据怎么获取 php获取数据类型

用php怎么获取网页编辑器里的内容

直接REQUEST["CONTENT"]就可以获取

十年的左云网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。营销型网站建设的优势是能够根据用户设备显示端的尺寸不同,自动调整左云建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。成都创新互联公司从事“左云网站设计”,“左云网站推广”以来,每个客户项目都认真落实执行。

和获取文本框的内容方法一样 编辑器只是引用了一个编辑州扰滚,接受它里面编辑的内容还是要获取文本区册余李正域的值

PHP中如何获取编辑器中的数据?

编辑器都自带使用方法的。推荐使用TinyMCE这个编辑器 下面是具体案例的让悉使用方法。获取值得时候获取id的值就可以

textarea id="contentform" rows="1" cols="1" style="width:580px;height:360px;" name="坦亮乎articlecontent"/textarea

!-- Load TinyMCE --

script type="text/javascript" src="tiny_mce/jquery.tinymce.js"/键桥script

script type="text/javascript"

$().ready(function() {

$("#contentform").tinymce({

// Location of TinyMCE script

script_url : 'tiny_mce/tiny_mce.js',

// General options

theme : "advanced",

language : "zh",

width : "580",

height : "360",

add_unload_trigger : true,

plugins : "Ybrowser,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",

// Theme options

theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",

theme_advanced_buttons2 : "forecolor,backcolor,del,ins,|,cut,copy,paste,pastetext,pasteword,|,outdent,indent,attribs,|,link,unlink,anchor,image,Ybrowser,media,cleanup,|,preview,code,fullscreen",

theme_advanced_buttons3 : "",

theme_advanced_buttons4 : "",

theme_advanced_toolbar_location : "top",

theme_advanced_toolbar_align : "left",

theme_advanced_statusbar_location : "bottom",

theme_advanced_resizing : false,

// Drop lists for link/image/media/template dialogs

template_external_list_url : "lists/template_list.js",

external_link_list_url : "lists/link_list.js",

external_image_list_url : "lists/image_list.js",

media_external_list_url : "lists/media_list.js",

relative_urls : false,

convert_urls :true,

remove_script_host : false

});

var formoptions = {

beforeSubmit: function() {

$("#submitbtn").val("正在处理...");

$("#submitbtn").attr("disabled","disabled");

},

beforeSerialize: function($form, options) {

tinyMCE.triggerSave();

},

success: function (msg) {

alert(msg);

if(msg == "文章添加成功!")

{

$("#sform").resetForm();

var now = new Date();

$("#pubdate").val(now.format("yyyy-mm-dd HH:MM:ss"));

}

$("#submitbtn").val("提交");

$("#submitbtn").attr("disabled","");

}

};

$("#sform").ajaxForm(formoptions);

$("#pubdate").datetimepicker({

showSecond: true,

timeFormat: 'hh:mm:ss',

hour:?php echo date('H');?,

minute:?php echo date('i');?,

second:?php echo date('s'); ?,

closeText:'完成',

currentText:'当前时间'

});

});

/script

!-- /TinyMCE --


当前文章:php编辑数据怎么获取 php获取数据类型
转载来源:http://cdkjz.cn/article/dspjegj.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220