Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

HTML and CGI

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTML and CGI

    If I use an RPG CGI to write HTML to standard output, this means that the HTML is just in memory and not in a file, right? So, what happens if the user bookmarks the URL and tries to go back to it later? If a URL cannot be bookmarked and recalled in this example, I would like the HTML to be written to a file and then have the RPG CGI output somehow point to the file. Is this possible? Sorry if these are stupid questions! Chris

  • #2
    HTML and CGI

    The URL contains the information that was used to run the CGI program so if the user returns to it later the CGI program should run again and produce the HTML page on the fly. A problem you could have is is the application had some 'state' that may no longer be valid. If so, the CGI program can output a message to the user, in the HTML, that this is the case. The above answer can be qualified by the fact that I haven't done much CGI programming but I have read the book e-RPG. Scott Mildenberger

    Comment

    Working...
    X