怎么提交后面的值

WBOY
Release: 2016-06-13 12:14:52
Original
877 people have browsed it

如何提交后面的值


上面的代码通过post提交($_POST[scene])的话,得到的是sceneid的id值。如何获得scene的值呢?
------解决思路----------------------
把scene写到option的value里面去
------解决思路----------------------
$v['sceneid'] 和 $v['scene'] 是关联在一起的
有了 $v['sceneid'] 的值,也就算有了对应的 $v['scene'] 了
所以 $v['scene'] 是不需要提交的 
------解决思路----------------------
那你就从原来的表按 id 取出 scene 来

其实按你的描述,sceneid 本身是无意义的了,另一张表有自己的 id 序列

就可以了

如果两表的 id 是有关联的,那么就不需要将 scene 重复插入
------解决思路----------------------

两个都传过去就可以了 用特殊符号隔开。 取的时候在转化下!

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!