You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何将ColdFusion变量传递至PHP文件?

问题:ColdFusion变量传入PHP文件失败求助

我正尝试将ColdFusion变量传入PHP文件,核心需求是在PHP API文件中调用CF变量。我不确定这是否可行,参考相关帖子后尝试实现,但API中的变量未被识别,我确信调用方式有误,恳请各位提供帮助!

ColdFusion表单代码

<cfform action="/stripped.php" method="post">
        
    <label for="Search" style="color: #fff !Important;"> Variable Form PHP:</label>
        
    <cfinput type="text" name="Variable" required="Yes" message="Please enter a Variable." class=" form-control" >         
    <input style="margin-top:20px;" type="submit" value="Send Variable" class="btn red-btn">
</cfform>

PHP文件参数代码

$params = ["contactPhone" => '#form.Variable#', "mode" => "AUTO", "subject" => "Test 0.0", "text" => "TEST TEXT IGNORE!"];

内容的提问来源于stack exchange,提问作者Matthew W.

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.03 08:30:51