Re: Best way to do server side tasks with new ISP




"Charlton Wilbur" <cwilbur@xxxxxxxxxxxxxx> wrote in message
news:86d48ee2qa.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx
"PES" == Paul E Schoen <paul@xxxxxxxxxxxx> writes:

PES> Yes, I was very confused about what the point was. I have no
PES> idea why the following line would ever need to be parsed in C,
PES> or in any other language:

PES> foo=1;bar=yes;baz=c;baz=b;baz=c;quux=seven;quux=;submit=true

Consider a list of CGI form parameters in a GET query string.

Well, I had to look up what a GET query string was. I found a reasonable
explanation at:
http://www.antipope.org/charlie/attic/webbook/ch5perl/perl7.html

Then I searched for what CGI form parameters were. I found:
http://www.perlmeme.org/tutorials/cgi_form.html

Now I am somewhat at a loss as to what created the GET query string in the
first place, and I also see that it seems to use semicolons instead of the
ampersands that are specified in the explanation. But my understanding is
that a query string is usually generated as a result of items a user may
have entered or selected in a blank form, and these items are then
interpreted and converted to HTML so that a new document will be created
according to the request of the user.

So, AIUI, the CGI script only needs to parse the query string and then
create a new HTML according to the parameters which were generated by the
original form, and the script is written specifically for that form, so it
already knows what the variables are, and what the values mean. So the
string could be formatted in any way that the script could understand, and
convert back to appropriate HTML.

I'm also not quite sure why the query string needs to be part of the URL,
although I can see that it identifies how the CGI script should format the
special version of the form as desired by the user. Thus the original URL
is just the blank form and the URL with the query is the modified version
as created by the CGI script. I take it that this exists as a temporary
file on the server which is then read by the browser?

There is probably a very basic level of understanding that I just do not
quite grasp.

Paul


.



Relevant Pages

  • Re: Dynamically generate HTML in C#
    ... display a map based on the query string that is passed to it. ... > your site for the HTML." ... the class you generate would be a helper class which would ... >> and using the HttpWebRequest and HttpWebResponse classes. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: dynamically embedding objects in html
    ... Thanks Jojo! ... I plan to open the html page from my application. ... I am looking forward to your script. ... sample code which decodes my query string and embeds the swf file I ...
    (alt.html)
  • Re: HyperLink with IsPostBack= true
    ... Create some html instead of the HyperLink controls and in the generated html you can specify the querystring yourself. ... page but with different query string, I pass the year and the month in the query string. ... Is it possible to put the IsPostBack value to true when I click on the HyperLink and reload the page with different query string? ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: dynamically embedding objects in html
    ... flash movie I need to play is test.swf. ... sample code which decodes my query string and embeds the swf file I ... I need to navigate to a html page in my application. ...
    (alt.html)
  • Re: HyperLink with IsPostBack= true
    ... Create some html instead of the HyperLink controls and in the generated html you can specify the querystring yourself. ... aspx page but with different query string, I pass the year and the month in the query string. ... Is it possible to put the IsPostBack value to true when I click on the HyperLink and reload the page with different query string? ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)