我有一个通过GET提交的表单,因为我需要它为每个提交的表单生成一个唯一的URL。目前生成的URL看起来像下面的例子:隐藏从生成的URL中获取参数
http://example.com/index.php?StoreID=1&value=22000&orderID=HEQ6FMYH&option1=0&option2=0
<form name="form1" action="http://example.com/index.php" method="get">
<input type="text" name="storeID" value="1" />
<input type="text" name="value" value="22000" />
<input type="text" name="orderID" value="<?php echo string_random(8);?>" />
<input type="text" name="option1" value="0" />
<input type="text" name="option2" value="0" />
<input type="submit" />
</form>
我需要做的是隐藏生成的URL的GET参数。什么是最好的方式来做到这一点?
为什么不使用POST而不是GET? –
你为什么要隐藏它?您无法使用GET加载一个网址,并向用户显示另一个网址。如果您使用POST,只会显示基本URL –
欢迎使用StackOverflow! – pixelistik