We help IT Professionals succeed at work.

Url Variables

Hallo Experts.
How can i pass values from one page to another?
i have one page select.cfm where i have a link <a href="Insert.cfm?Mobile_sub_id=1">Auto</a>
How can i get the value 1 in the next page Insert.cfm in a hidden field <input name="Mobile_sub_ID" type="hidden" id="Mobile_sub_ID"/>?
I use Coldfusion 8 ,MS SQL SERVER.
Comment
Watch Question

Commented:
dim msi
strMSI=request.queryString("Mobile_sub_id")

<input name="Mobile_sub_ID" type="hidden" id="Mobile_sub_ID" value="<%=strMSI%>"/>?

CERTIFIED EXPERT
Commented:

this will do it for you

<cfoutput>
<cfif isDefined('url.Mobile_sub_ID')>
<input name="Mobile_sub_ID" type="hidden" id="Mobile_sub_ID" value="#url.Mobile_sub_ID#'/>
</cfif>
</cfoutput>

Commented:
oh it was coldfusion....and i gave u asp....sory

Explore More ContentExplore courses, solutions, and other research materials related to this topic.