【发布时间】:2017-03-06 00:55:16
【问题描述】:
我正在尝试使用 URL 中定义的变量填充表单。我生成的 URL 如下所示。
http://serverip/Forms/webform.php?customer_phone_c=--A--phone_number--B--&newtitle_c=--A--title--B--&newfirstname_c=--A--first_name--B--&newsurname_c=--A--last_name--B--&address_1_c=--A--address1--B--&address_2_c=--A--address2--B--&address_3_c=--A--address3--B--&postcode_c=--A--postal_code--B--&agent_name_c=--A--fullname--B--
谁能帮我解释一下为什么这对我不起作用。我是新手,很想让它发挥作用。
在我的 webform.php 文件中,我尝试使用以下部分。表单本身有效,但不会使用“--A--phone_number--B--”填充字段客户电话
<td style="text-align: left; font-size: 12px; font-weight: normal;" width="15%"><span>Customer Phone: </span></td>
<td style="font-size: 12px; font-weight: normal;" width="35%"><span><input id="customer_phone_c" type="text" value="<?php echo $_GET['--A--phone_number--B--'];?>" name="customer_phone_c" /></span></td>
【问题讨论】:
-
你的意思是
$_GET['customer_phone_c']?