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='text' name='info[testimages]' id='testimages' value='' size='' class='input-text' /> <input type='button' class='button' onclick="javascript:flashupload('testimages_images', '附件上传','testimages',submit_images,'1,gif|jpg|jpeg|png|bmp,1,,','member','','c37c3ee14570cf9dea7e79707e3494fb')"value='上传图片'/> </div>
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!