Spencer,
You'll have to set your form variables as sessions variables on screen2.cfm
before you can output 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>
<cfoutput>
Name: #session.fname# #session.lname#, #session.title#<br>
Company: #session.coname#<br>
Phone: #session.phone#<br>
E-mail: <a href="mailto:#session.email#">#session.email#</a><br>
</cfoutput>
That should do it :-)
- Jay
> 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.