Question
Set session variables inside a page
Inside the page "form.cfm" I have this code:
<form name="report" action="pagestatistic.cfm" method="post">
<INPUT name=ONE size=15 >
<INPUT name=TWO size=15 >
<input type="submit" value="Go ON">
</form>
I would like to set session variable: ONE and TWO, inside the page: pagestatistic.cfm
IN that way when I will refresh the page "pagestatistic.cfm" I will watch have the same results.
I added this code at the top of "pagestatistic.cfm" but it doesn't work.
<CFSET session.ONE = #ONE#>
<CFSET session.TWO = #TWO#>
Could you tell me what goes wrong?
Thanks
CFWork
<form name="report" action="pagestatistic.cfm" method="post">
<INPUT name=ONE size=15 >
<INPUT name=TWO size=15 >
<input type="submit" value="Go ON">
</form>
I would like to set session variable: ONE and TWO, inside the page: pagestatistic.cfm
IN that way when I will refresh the page "pagestatistic.cfm" I will watch have the same results.
I added this code at the top of "pagestatistic.cfm" but it doesn't work.
<CFSET session.ONE = #ONE#>
<CFSET session.TWO = #TWO#>
Could you tell me what goes wrong?
Thanks
CFWork
