Transaction including two web page + timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> > Good idea.  One problem is that HTML is a stateless protocol.  How can I
> > let application to hold the whole contents of the first page and second
> > page?
>
> PHP provides for session tracking. Somehow you have to be tying the two
> web requests together. You could store the information from the first
> request as a file or in a table in the database that holds the page 1
> requests temporarily.

Look into session variables, they are stored on the web server and
available to all the following instances of PHP scripts from each
particular user.  It is set up with one line of code at the top of each
script and then you can pass the variables onto the following scripts, no
need to worry about the the details of file or database calls for the
temporary info, it's built into PHP.

brew




[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux