如何在ColdFusion中使用PHP $ _GET

时间:2017-10-16 14:57:31

标签: php coldfusion

我有以下PHP代码,用于从我调用API的站点确认授权令牌

<html>
<title>EasyPay confirm</title>
<body>
<div class="clear"></div>
      <div align="center">
      <img src="images/wait.gif"></img>
      </div>
<form action="https://easypaystg.easypaisa.com.pk/easypay/Confirm.jsf " method="POST" id="easyPayAuthForm">
<input name="auth_token" value="<?php echo $_GET['auth_token'] ?>" >
<input name="postBackURL" value="http://shopweb.windsorparking.com/php/index.php" hidden = "true"/>
<input value="confirm" type = "submit" name= "pay"/> 
</form>
</body>
<script>
(function() {
  document.getElementById("easyPayAuthForm").submit();
})();
</script>
<html>

我想要归功于Coldfusion的唯一部分是

<input name="auth_token" value="<?php echo $_GET['auth_token'] ?>" >

任何想法如何完成

1 个答案:

答案 0 :(得分:0)

CF中的等效代码是url [&#34; argname&#34;]所以

<input name="auth_token" value="<cfoutput>#url['auth_token']#</cfoutput>" >

应该做的伎俩