PHP form 表单传参明细研究
发布时间:2020-12-13 05:33:47 所属栏目:PHP教程 来源:网络整理
导读:为什么呢?因为表单的处理有GET和POST两种,怎么在这两种表单中都要传递一直do参数,而且要在后台通过同样的方式获取就一直是个很困惑的问题,今天经过几个小时的实验终于搞懂了,特发此文。 GET表单: div class="codetitle" a style="CURSOR: pointer" dat
为什么呢?因为表单的处理有GET和POST两种,怎么在这两种表单中都要传递一直do参数,而且要在后台通过同样的方式获取就一直是个很困惑的问题,今天经过几个小时的实验终于搞懂了,特发此文。 GET表单:<div class="codetitle"><a style="CURSOR: pointer" data="91657" class="copybut" id="copybut91657" onclick="doCopy('code91657')"> 代码如下:<div class="codebody" id="code91657"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html;charset=gbk"/> <form action="action-get.php?parm=url-get" method="get"> |