NetTalk Central

Author Topic: Local variables and a form  (Read 1939 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 342
    • View Profile
    • Email
Local variables and a form
« on: June 02, 2010, 04:46:20 AM »
Hi,

(posted on 3rdparty NG too)

I know you have to use session variables instead of local.
Local variables only live for the duration of the page generation, a split
second.
Normally I might use local variables for screen entry for this type of
situation.

What I am trying to do is the following:
client fills in 10-20 fields on a webpage, if he submits, I need to write
that away to several different files.

Do I create a memory file for these fields, use a form, and then on
completion, write to different files?
Is there another way using session variables?


Johan

JohanR

  • Sr. Member
  • ****
  • Posts: 342
    • View Profile
    • Email
Re: Local variables and a form
« Reply #1 on: June 02, 2010, 06:51:37 AM »
from the NG

Hi Johan,

In your form procedure you can have local data fields.
Then you can put these on the form just like file fields.

Just rememebr in your code to still use the SessionVariable, not the local
field. ie something like

whatever= p_web.GSV('loc:something')

Cheers
Bruce