Home >CMS Tutorial >PHPCMS >How to upload pictures in phpcms

How to upload pictures in phpcms

angryTom
angryTomOriginal
2020-02-15 14:01:432971browse

How to upload pictures in phpcms

How to upload pictures with phpcms

1. First, on the template page, quote js and css, and you can get it done with just two texts.

<script type="text/javascript" src="http://www.51shuxie.com/statics/js/dialog.js"></script>
<link href="http://www.51shuxie.com/statics/css/dialog_simp.css" rel="stylesheet" type="text/css" />

Related recommendations: phpcms tutorial

2. Then call the upload image function

<div class="form">
    <script type="text/javascript" src="statics/js/swfupload/swf2ckeditor.js"></script>
    <input type=&#39;text&#39; name=&#39;info[testimages]&#39; id=&#39;testimages&#39; value=&#39;&#39; size=&#39;&#39; class=&#39;input-text&#39; />  
    <input type=&#39;button&#39; class=&#39;button&#39; onclick="javascript:flashupload(&#39;testimages_images&#39;, &#39;附件上传&#39;,&#39;testimages&#39;,submit_images,&#39;1,gif|jpg|jpeg|png|bmp,1,,&#39;,&#39;member&#39;,&#39;&#39;,&#39;c37c3ee14570cf9dea7e79707e3494fb&#39;)"value=&#39;上传图片&#39;/>
</div>

How to upload pictures in phpcms

The above is the detailed content of How to upload pictures in phpcms. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn