Forum OpenACS Q&A: Response to Passing parameters between pages

Collapse
Posted by David Siktberg on
Both GET and POST can be used to launch queries and launch changes.  The key thing is that they both send variable values from the browser to the server, which can use them as it pleases.  In my experience, AOL Server does not differentiate between variables passed in the URL and parameters passed within the HTML headers by a POST.  They both are accessible via ns_getform.  You can even have some of each on a given page:

<form method="POST" action="foo.tcl?var1=blah">
<input type=text name=var2>
...

will deliver values for both var1 and var2 to the server.

If you examine the HTML headers for your HTTP traffic (I highly recommend that if you want to learn how HTTP requests work - one method for Windows clients is the PC Magazine utility Cookie Cop 2, which has an HTTP viewer), you'll see the embedded variable info from a POST.