一个类似于公布微信朋友圈的功能

WBOY
Release: 2016-06-13 12:26:11
Original
1483 people have browsed it

一个类似于发布微信朋友圈的功能!
就是在当前页面,先选择上传一张照片后,页面跳转到朋友圈发布页,然后再提交。
我的问题是我打算在当前页写一个js,选择完照片后跳转,然后把照片的url保存到session中,然后在跳转后的页面把session里的图片url取出来跟表单一起提交到添加算法里,可是我在取照片地址的时候是取得file框的value值结果类似“c:pake/XXXXX.jpg”,这样的地址好像并不能被TP的上传方法使用,有没有写过的提供下思路?原谅我不懂框架的源码和底层逻辑,有时间的话我也很想看,可是这个项目目前也是比较急的,希望大家能指点下!不胜感激!

还有手机上用qq浏览器好像对onchange方法不怎么支持,有没有什么类似的方法用呢
------解决思路----------------------
1.首先用正常的上传图片方法,上传图片,用$_FILES,上传后,把图片路径,写入数据库,返回id
2.提交时,只提交id
3.根据提交的id,从数据库中获取图片路径显示。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!