• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 153
  • Last Modified:

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.
0
Panos
Asked:
Panos
  • 2
1 Solution
 
GawaiCommented:
dim msi
strMSI=request.queryString("Mobile_sub_id")

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

0
 
SidFishesCommented:

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>
0
 
GawaiCommented:
oh it was coldfusion....and i gave u asp....sory
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now