dougehe2022 2017-10-16 14:57
浏览 29
已采纳

如何在ColdFusion中使用PHP $ _GET

I have the following PHP code, that is used to confirm the authorization token from the site where I'am calling the 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>

The only Part that I want to chane to Coldfusion is

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

Any Ideas How to get it done

  • 写回答

1条回答 默认 最新

  • dream_high1026 2017-10-16 16:40
    关注

    The equivalent code in CF is url["argname"] so

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

    should do the trick

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?