Passing Variables in a non-CGI LC Server?

Rick Harrison harrison at all-auctions.com
Thu Apr 6 22:46:58 EDT 2017


Hi Richard,

Ok, let me clarify if I can.  LC Server as it
is installed out of the box without setting
it up as it used to be set up in the old days.

I have three webpages.  The first accepts
the user’s input into various fields and then
passes that information to the next webpage
through the user's web browser.  That works
fine.  Then without writing those parameters
out to a database, I want to pass those
now hidden parameters to the next webpage
for further processing before writing those
values out to the database.  

How are people handling that process?  
Or am I forced into writing everything out 
to the database and then reading it all 
back in just to go from one page to the next 
to the next?

Thanks,

Rick

> On Apr 6, 2017, at 6:52 PM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Rick Harrison wrote:
> 
> > So the answer is - only in a stack.
> > Perhaps the dictionary should have
> > a comment stating or clarifying that fact.
> 
> Mike said:
> 
>   Can't answer the rest, but as for the global.. Since you can utilize
>   stacks with server, you could declare a global just as you would
>   normally, in any scripts that needed it, and it would work just like
>   in lc proper.  It would only persist during the run of that
>   particular instance.
> 
> LiveCode globals are available to all scripts that declare them within the LiveCode process.
> 
> I think maybe the reason Mike's reply was focused on stacks is that it's not clear what you're doing.
> 
> Your original post said:
> 
>  I have a few variables I would like to pass from one <?lc..
>  server script to another using a web  browser with an lc
>  server that is not configured to be a cgi server.
> 
> Since LC Server runs as a CGI, and even if you were using a standalone on the server as a daemon it would still be on the server and not in the client browser, I can't figure out what that sentence means.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com                http://www.FourthWorld.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list