Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Strings - reading string parameters

Status
Not open for further replies.

Decus

Programmer
Oct 11, 2001
20
FR
Hi, I'm a newbie to coldfusion. What I'm trying to acieve is send a string parameter in a url and have the next page read the value.

myfirstpage.cfm
<cfset subjectname = &quot;English&quot;>
<cfoutput>
<a href=&quot;mynextpage.cfm?subjectname=#subjectname#>
#subjectname#</a>
</cfoutput>

mynextpage.cfm
The parameter visible in the url address bar is
so does seem to send value ok. The code to read the value is

<cfoutput>
#url.subjectname#
</cfoutput>

The value displayed in the browser is 0(zero). Why? How may I receive the string value?
 
Problem solved.
It wasn't the code but ftp problems. ftp client did not overwrite previous code which included the statement
#val(url.subjectname)# hence why the returned value of zero.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top