Thanks to all who helped me out.
I'm starting to dig this cold fusion thing :)

spence
-----Original Message-----
From: Stephen M. Aylor <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: May 8, 2000 12:06 PM
Subject: Re: session variable blues


>Where are you "setting" (for example....<cfset session.lname =
>"#form.lname#">) the form fields to session variables?
>
>How would cf server know you wanted these form fields as session var's
>unless you tell it? :-)
>
>Seems your missing the step that sets the variables to seesion var's. This
>would be done on screen2.cfm, prior to trying to display them.
>
><cfset session.lname  = "#form.lname#">
><cfset session.fname  = "#form.fname#">
><cfset session.email  = "#form.email#">
><cfset session.phone  = "#form.phone#">
><cfset session.coname = "#form.coname#">
><cfset session.title  = "#form.title#">
>
>
>Im not sure I understand your need for placing these cfparams in your
>application.cfm, but Im sure you have your reasons.  Maybe these really
>belong in your "screen2.cfm" also?
>
>>  <!--params for clientinfo table-->
>> <cfparam name="session.lname" default="">
>> <cfparam name="session.fname" default="">
>> <cfparam name="session.email" default="">
>> <cfparam name="session.phone" default="">
>> <cfparam name="session.coname" default="">
>> <cfparam name="session.title" default="">
>
>
>HTH,
>
>Steve
>
>
>
>----- Original Message -----
>From: Adrian Miller <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, May 08, 2000 08:16 AM
>Subject: RE: session variable blues
>
>
>> from one newbie to another.  Try using #Form.lname# instead of session.
>> Hope this helps (probably won't though)
>>
>>
>>
>>
>> -----Original Message-----
>> From: Spencer Saunders [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, May 08, 2000 8:12 AM
>> To: cftalk
>> Subject: session variable blues
>>
>>
>> Okay I'm a newbie and I'm having some trouble using session variables.
>They
>> are not being stored it seems and therefore not being passed from
template
>> to template as the user moves through the app,.
>>
>>  My application file looks like this
>>
>> <cfapplication name="whatever"
>> clientmanagement="Yes"
>> sessionmanagement="Yes"
>> setclientcookies="Yes"
>> sessiontimeout="#createtimespan(0,0,20,0)#"
>> applicationtimeout="#createtimespan(1,0,0,0)#">
>>  <!--params for clientinfo table-->
>> <cfparam name="session.lname" default="">
>> <cfparam name="session.fname" default="">
>> <cfparam name="session.email" default="">
>> <cfparam name="session.phone" default="">
>> <cfparam name="session.coname" default="">
>> <cfparam name="session.title" default="">
>>
>> Then the folowing templates ask for the user to input their names etc. in
>> form fields where they get stired for the duration of the visit. like so;
>>
>> <form action="screen2.cfm" method="POST">
>> <input type="Text" name="lname" size="25" value="">:Last Name<br>
>> <input type="Text" name="fname" size="25" value="">:First Name<br>
>> <input type="Text" name="email" size="25" value="">: Email<br>
>> <input type="Text" name="phone" size="25" value="">: Phone Number<br>
>> <input type="Text" name="coname" size="25" value="">: Company Name<br>
>> <input type="Text" name="title" size="25" value="">: Title<br>
>>
>>
>> <input type="Submit" value="next">
>>
>>
>> screen2.cfm;
>>
>> <cfoutput>
>> Hello #session.fname# #session.lname#<br>
>> Your email address is : #session.email#<br>
>> </cfoutput>
>>
>> etc.
>>
>> But the varibles entered on screen1 are not being passed to screen2.cfm?
>>
>> Now this should be really simle but I must be missing something.
>> Can somebody please help me out. I would be eternally grateful. Thanks
>>
>> spencer the newbie
>>
>>
>> -------------------------------------------------------------------------
-
>--
>> --
>> Archives: http://www.eGroups.com/list/cf-talk
>> To Unsubscribe visit
>> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
or
>> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>> the body.
>> -------------------------------------------------------------------------
-
>----
>> Archives: http://www.eGroups.com/list/cf-talk
>> To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
>>
>
>---------------------------------------------------------------------------
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to