当前位置:编程学习 > html/css >>

<FORM name=formsearch action=/plus/search.php> <DIV class=form><INPUT type=hidden value=0 name=kwt

函数之间是怎么传递的 求帅锅帮忙解答下 <FORM name=formsearch action=/plus/search.php> <DIV class=form><INPUT type=hidden value=0 name=kwtype> <INPUT class=search-keyword id=search-keyword name=keyword><BUTTON class=search-submit type=submit>搜索</BUTTON> </DIV></FORM>
答案:你这个form不完整吧,完整的情况下,还有 method=‘post’ 或者是 method=‘get’... 
假设完整,那么:
首先看你的 button:
BUTTON class=search-submit    type=submit
因为你的button type为submit(提交),当你点击button这个标签的时候这个form表单就会把表单里面填写好的值 传递给action中的文件。
action=/plus/search.php 一般是在search这个页面通过系统预设的变量来接受form表单传递的值,如果form表单的method为post,这个页面则通过$_POST['kwtype']来接受你form表单的值,如果为get,则这个页面通过$_GET['kwtype']来接受form表单的值~
其他:这代码就几个标签,哪有什么函数。 

上一个:为什么我在VS里面设计的时候设置了margin-top的DIV显示正常,但是预览的时候margin-top就无效了
下一个:新浪博客上是什么意思<div class="SG_conn" id='adps_person' style="display:non

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,