Home  >  Article  >  Backend Development  >  如何不同的form之间传输数值

如何不同的form之间传输数值

WBOY
WBOYOriginal
2016-06-13 13:08:33789browse

怎么不同的form之间传输数值?
echo "
 


C1

C2

C3

C4

C5

C6

C7

C8

C9




 



 "
$a=$_GET[???];
echo $a;
?>

代码如上,因布局需要,复选框跟提交按钮在不同的form,怎么写才能在f2中点击提交,就能得到选中的f1的数据呢?他们是怎么传递的?

对了,上面那个$a=$_GET[???],我是想表达$a=获得数据,但不会写,格式是这样的对吧,麻烦教教菜鸟的我,感谢各位。

------解决方案--------------------
用js 在点击f2的时候注册subimt事件(其他事件也可以),然后再事件中处理上面的checkbox,如用jquery $('input[type=checkbox]').attr('checked','checked');
------解决方案--------------------

------解决方案--------------------
print_r($_GET); //就知道了,就看你要获取哪个值啦
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