Demo address:
Http://asp2004.net/temp/goods/index.asp
:
ASP (goods folder phpedit folder) http://asp2004.net/temp/goods/goods.rar
PHP: http://asp2004.net/temp/goods/edit_php.rar
Readme:
Deep ze simple and practical Editor
Brief Introduction:
---------
This editor is practical and has a simple interface! Basically suitable for the requirements of various sites (especially the article System)
Instructions for use
--------
1. Put the phpedit folder to the same level directory as the file to be referenced
A reference method in ASP:
-- Add: <! -- # Include file = "phpedit/edit.html" -->
B's reference method in PHP
-- Add: <? Include ("phpedit/edit.html")?>
2. Form format:
<Form name = "form1" method = "Post" Action = "" onsubmit = 'Return subck (this) 'Return>
3. This hidden field is used to pass the input code.
PHP: <input name = sz_content type = hidden maxlength = "30000" value = "<? = $ Content?> ">
ASP: <input name = sz_content type = hidden maxlength = "30000" value = "<% = content %>">
PHP: Optional values:
$ Variable = $ _ post [sz_content];
ASP value method:
Variable = request. Form ("sz_content ")
4. Add onload = sz_edit () to the <body> label during edit ()
That is, <body onload = sz_edit ()>
5. asp: the upload. asp file is not attached. You can find a safe and reliable file.
PHP: upload files with upload. php. If you feel this file is not safe, you can change it !!
Introduction
--------
This editor is originally created by shenzhe and can be freely transmitted. Piracy is not investigated, but it is hoped that the copyright of the message will be protected.
I will continue to improve and hope you can complete it !! Remember to send me a copy !!
Author QQ: 31477177 E-mail: shenzhe163@sohu.com homepage = http://asp2004.net, http://www.pp365.com