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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing values from asp/html to cold fusion 2

Status
Not open for further replies.

jakeyg

Programmer
Mar 2, 2005
517
GB
I need to pass from an html page to a cold fusion page a value either as a session variable (which I think cold fusion ignores) or as a querystring or however it's done.

How do I do a Request.QueryString in cold fusion
and then evaluate it?
I've got this as the syntax for a CF if statement, but it doesn't work, probably because I'm not storing anything in UserID

<cfif UserID is "">
hello
<cfelse>
goodbye
</cfif>

Anyone with any links to decent coldfusion for utter beginners sites, I'll take them too :)

thanks
 
The QueryString equates to the URL scope in CF, so

URL.UserID would retrieve that value. Similarly, form values are in the FORM scope, so long as the CF page is the action page for the requestor.

Look at easycfm.com, webtricks.com, et al. for starters. Definitely peruse the LiveDocs at MM and get used to the syntactical and dialectical differences.

Have Fun!

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'm not as think as you confused I am.
-----------
Flabbergasted (a.): Amazed at how much weight one has gained.
-----------
Oyster (n.): One who sprinkles their conversation with Yiddish expressions.
 
here is a brief asp to cf translator for you.

request.queryString("someVar") = url.someVar
request.form("formVar") = form.formVar
session("sessionVar") = session.sessionVar
i'm not sure about this one, it's been a few years but i think....
queryName("columnName") = queryName.columnName

Technology is dominated by two types of people: those who understand what they do not manage, and those who manage what they do not understand. - Putt's Law
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top