如何获取URL参数& Coldfusion的价值? [英] How Can I get the URL parameter & Value in Coldfusion?
本文介绍了如何获取URL参数& Coldfusion的价值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取网址参数& Coldfusion的价值?
for Ex: -
How Can I get the URL parameter & Value in Coldfusion? for Ex:-
我的网址是
test.cfm?par1=val1&par2=val2&par3=val3
第二个参数及其值直接?
Is it possible to get the second parameter and its value directly?
与< cfset param ='#url.par2#'>
我可以得到par2的值,
但是我的参数是从其他页面动态生成并传递到这里(par2可能是下一次abc2,xyz2等..)
所以我想更好的方法是获取
with <cfset param='#url.par2#'>
I can get value of par2,
But my parameters are dynamicically generated from other page and passed to here (par2 may be next time abc2,xyz2 etc..)
So I think better way is to get the parameter and Value in 2nd Possition(Possition dont change always).
任何想法如何获得?
提前感谢
推荐答案
<cfset Param2 = ListGetAt(CGI.QUERY_STRING,2,"&")>
这篇关于如何获取URL参数& Coldfusion的价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文