


Baidu UEditor is simple to install, debug and call. Other tutorials on the Internet are too official and not suitable for novices. UEditor installation and debugging_PHP tutorial
Baidu UEditor is simple to install, debug and call. Other tutorials on the Internet are too official and not suitable for novices. Ueditor installation and debugging
For novices, as long as the functions can be realized, Other settings are completely default.
Preview:
1. First go to the official website to download, not much to say. After downloading, unzip it to the directory you want on the website. I put it in the root directory. Where you need to use the editor, insert the following HTML code:
<!-- 加载编辑器的容器 --> <!-- 以下脚本中增加文本为初始化内容 --> <script id="container" name="sb_remarks" type="text/plain">$sb_remarks=$_POST['sb_remarks'];
================================
Here is my complete example code:
index.html:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <title>设备档案</title> </head> <body> <form method="post" action="s.php" name="search" /> <input name="search" type="text" value="" size="15" /> <input type="submit" value="Search" /> </form> <br/> <hr/> 添加设备 <div> <form action="sb_add.php" method="post"> 设备名称:<input type="text" name="sb_name" /><br/> 编码型号:<input type="text" name="sb_numandtype" /><br/> 生产厂家:<input type="text" name="sb_home" /><br/> 启用日期:<input type="text" name="sb_usedate" /><br/> 安装位置:<input type="text" name="sb_address" /><br/> <!--更新日期:<input type="text" name="sb_updatetime" /><br/>--> <!-- <input type="text" name="sb_remarks" /> --> <!-- 加载编辑器的容器 --> <!-- 以下脚本中增加文本为初始化内容 --> <script id="container" name="sb_remarks" type="text/plain"><?php $con = mysql_connect("localhost","root","110"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_query("set names 'utf8'",$con); mysql_select_db("bzec", $con); $sb_name=$_POST['sb_name']; $sb_numandtype=$_POST['sb_numandtype']; $sb_home=$_POST['sb_home']; $sb_usedate=$_POST['sb_usedate']; $sb_address=$_POST['sb_address']; //$sb_updatetime=$_POST['sb_updatetime']; $sb_updatetime=date("Y-m-d G:i:s"); $sb_remarks=$_POST['sb_remarks']; //$nikename= trim($nikename); /* if (!$nikename || !$email) //判断是否为空 { echo '不能为空'; exit; } */ $sql="INSERT INTO shebeidangan (sb_name,sb_numandtype,sb_home,sb_usedate,sb_address,sb_updatetime,sb_remarks) VALUES ('$sb_name','$sb_numandtype','$sb_home','$sb_usedate','$sb_address','$sb_updatetime','$sb_remarks')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "ADD OK"; mysql_close($con) ?>
3. If you want to modify the default font size of the editor, search for "Font" in the editor UEditor directory, ueditor.all.js file, and you can find the place to modify the font size and font

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











As we all know, optimizing the SEO of a website is a very important part of website operation. The default URLs of dynamic web systems (such as PHP) used by many websites have extensions (.php, .html, etc.), which will affect the SEO effect of the website. In order to improve the optimization effect of the website, a common practice is to change the dynamic URL to a pseudo-static URL to hide the extension name and improve the user experience and search engine ranking of the website. This article will take "pseudo-static hidden php suffix" as the theme, introduce how to achieve this optimization in PHP websites, and

Websites developed with PHP include: 1. Facebook, one of the world's largest social media platforms; 2. Wikipedia, the world's leading online encyclopedia; 3. WordPress, a widely used open source blog and content management system; 4. Twitter, a popular social media platform; 5. Yahoo, a world-renowned portal; 6. Flickr, an online image hosting and sharing platform; 7. LinkedIn, a professional social media platform.

Empire cms template development methods include: 1. Understand the template structure; 2. Modify the template code; 3. Use tags and variables; 4. Create custom functions; 5. Use CSS and JS; 6. Use template modules; 7. Debugging and test.

Websites made with PHP include: 1. Facebook, one of the world's largest social media platforms; 2. Wikipedia, an online encyclopedia edited by users around the world; 3. WordPress, a popular open source blog and content management system; 4. Slack, a widely used team collaboration tool; 5. Magento, a powerful open source e-commerce platform; 6. Etsy, an online marketplace for handicrafts and independent designers.

How to protect your PHP website using secure coding practices? With the popularity and development of the Internet, more and more websites use PHP as the development language. However, PHP's flexibility and ease of use also make it vulnerable to various security threats. Therefore, when developing a PHP website, it is essential to apply secure coding practices to protect the website from possible attacks. This article will introduce some ways to protect your PHP website using secure coding practices and provide corresponding code examples. Input Validation and Filtering Input Validation and Filtering is the key to protecting PHP websites

Building a PHP website involves the following steps: 1. Prepare the environment, install the PHP development environment and create the website root directory. 2. Create the basic file structure, including the homepage index.php and other required files. 3. Write home page content, use HTML and PHP to build page structure and dynamically generate content. 4. Add other pages and create other PHP files to process page content. 5. Connect to the database (optional), use PHP to connect to the database and operate the data. 6. Design styles and interactive effects, and use CSS and JavaScript to enhance the beauty and interactivity of the website. 7. Deploy the website and upload the website files to the server or

How to use encryption algorithm to protect user data of PHP website? With the rapid development of the Internet, user data protection of websites has become more and more important. In PHP development, we can use encryption algorithms to protect the security of user data. This article will introduce some commonly used encryption algorithms and how to use them in PHP websites to encrypt user data. 1. Selection of encryption algorithms For PHP websites, we can choose the following commonly used encryption algorithms to protect the security of user data: 1. Symmetric encryption algorithm: This algorithm uses the same encryption algorithm.

How to improve the access speed of PHP website by compressing files? Abstract: With the development of the Internet, website access speed has become more and more important. In PHP websites, compressing files is a common method to speed up. This article will introduce how to improve the access speed of PHP website by compressing files, and give corresponding code examples. 1. Why can compressing files improve access speed? In the process of browsing the web, the browser needs to download and load various files required by the web page, including HTML, CSS, JavaScript files, etc.
