Home > Backend Development > PHP Tutorial > PHP获取select值点击链接传入下一个页面

PHP获取select值点击链接传入下一个页面

WBOY
Release: 2016-06-13 12:04:02
Original
922 people have browsed it

PHP获取select值点击链接传到下一个页面
第一个页面:

<div  class="price"><br /> <div class="clear"></div><br /><dl><br /><dt>选择合作服务站:</dt><br /><dd><br /><select name="zhan"><option >请务必选择收货地址</option><br /><!--{loop $zhanlist $tt}--><br /><br /><option>{$tt[name]}-{$tt[address]}</option><br /><!--{/loop}--><br /></select><br /></dd><br /></dl><br /><br /></div><br /> <a id="btn_Add" class="hidefocus" href="http://www.sdlhqc.com/create_partner_trade_by_buyer-PHP-UTF-8/index.php?sid={$product['price']}&itemid={$_GET['itemid']}&zhan" hidefocus="true"><br />
Copy after login

第二个页面:
<br />  <dt>收货人地址:</dt><br />                    <dd><br />                        <span class="null-star">*</span><br />                        <input size="30" name="WIDreceive_address" value="<?php <br />						$t=$_POST['zhan'];<br />						echo iconv('GBK',"UTF-8","$t") ?>"" /><br />                        <span>如:XX省XXX市XXX区XXX路XXX小区XXX栋XXX单元XXX号<br />
Copy after login

以前我用GET传过来都是一条数据。而且还需要转换格式。
怎么用POST提交表单传过数据来。

------解决方案--------------------
没有看到表单,也没看到 js 代码
------解决方案--------------------
请先去了解最基础的HTML知识里用来提交的

标签
或者了解下JS提交数据的方法。
------解决方案--------------------
GET 方式

....



还有 Ajax 方式就不列举了
------解决方案--------------------
赋值给一个元素,ajax提交就行了啊
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