一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

php无刷新文件上传代码

时间:2008-07-24 编辑:简简单单 来源:一聚教程网


if (isset($_GET['action']) && $_GET['action']=='update')
{
    //update notice data
    //上传文件
    require_once("upload_class.php");
    $f = new Upload( $savepath, $fileFormat, $maxsize, $overwrite);
    if (!$f->run('img'))
    {//下面的img是Form中上传文件的input的名字
        echo $f->errmsg();  //这里只能传递最后一个出错的信息,详细的信息在$f->getInfo()中可以得到。
        print_r($f->returnArray);
    }
    echo "
   
    ";
}
?>




css" rel="stylesheet" type="text/css" />






发布文章--编辑页面



 
   
 
  {{section name=article loop=$article}}
 
 
 
   
   
 
 
   
   
 
 
   
   
 
 
   
   
 
 
   
   
 
 
   
   
 
 
   
   
 
   
   
   
 
   
   
 
 
   
 
 
  {{/section}}
编辑文章内容
文章标题:
发布IP:
作者:
分类:
来源:
是否置顶:{{html_radios name='is_top' options=$is_top_radios checked=$article[article].is_top separator=' ' _note='是否置顶|radio|1=>是,0=>否' }}
内容:{{$editor}}
图片上传:
   
   
      ++
   
   

 
文件上传:
      ++
   
   



热门栏目