scripter73
Programmer
Hi,
Question. Can you declare session variables before they actually have values?
I have a form that a user will fill out. I want some of the fields to become session variables, so do I define the session variables AFTER the form definition like follows:
<form>
...Form fields here
</form>
<cfset #session.variable1# = formfield value>
....
<cfset #session.variablen# = formfield value>
OR
Should I just have my form in FILEA.CFM and then when the user hits submit button, send my form data to FILEB.CFM and just declare the session variables there in FILEB.CFM?
I'm a little confused on when to declare session variables and when to apply values to them. Please advise.
Thanks in advance.
scripter73
Question. Can you declare session variables before they actually have values?
I have a form that a user will fill out. I want some of the fields to become session variables, so do I define the session variables AFTER the form definition like follows:
<form>
...Form fields here
</form>
<cfset #session.variable1# = formfield value>
....
<cfset #session.variablen# = formfield value>
OR
Should I just have my form in FILEA.CFM and then when the user hits submit button, send my form data to FILEB.CFM and just declare the session variables there in FILEB.CFM?
I'm a little confused on when to declare session variables and when to apply values to them. Please advise.
Thanks in advance.
scripter73