Php 传递文本字段变量
我想能够通过一个汽车登记文本字段的报价引擎。最终URL如下所示Php 传递文本字段变量,php,forms,variables,Php,Forms,Variables,我想能够通过一个汽车登记文本字段的报价引擎。最终URL如下所示 https://www.thedomain.com/default.aspx?op=getaquote&linkfrom=OMRMOTOR&brand=test&carreg=<?php echo $_SESSION['carreg']; ?>&campaign=<?php echo $_SESSION['campaign']; ?>&clickid=<?php
https://www.thedomain.com/default.aspx?op=getaquote&linkfrom=OMRMOTOR&brand=test&carreg=<?php echo $_SESSION['carreg']; ?>&campaign=<?php echo $_SESSION['campaign']; ?>&clickid=<?php echo $_SESSION['clickid']; ?>
https://www.thedomain.com/default.aspx?op=getaquote&linkfrom=OMRMOTOR&brand=test&carreg=&campaign=&clickid=
我已经创建了以下表单,但它似乎没有传递car reg字段的输入,但是clickID和campaign是
<form method="post" action="https://www.thedomain.com/default.aspx?op=getaquote&linkfrom=OMRMOTOR&brand=test&carreg=<?php echo $_SESSION['carreg']; ?>&campaign=<?php echo $_SESSION['campaign']; ?>&clickid=<?php echo $_SESSION['clickid']; ?>">
<input class="entry" id="carreg" onfocus="if(this.value == 'Your Reg') { this.value = ''; }" value="Your Reg" />
<input type="submit" value="Submit">
</form>
问题在于,在会话中,carreg不知道该时间
表单只提交具有“name”属性的字段。表单不应该使用method=“get”
将carreg
字段的值添加到url中吗?