Re: Best way to do server side tasks with new ISP
- From: "Paul E. Schoen" <paul@xxxxxxxxxxxx>
- Date: Mon, 06 Jul 2009 17:19:17 GMT
"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
.
- Follow-Ups:
- Re: Best way to do server side tasks with new ISP
- From: Charlton Wilbur
- Re: Best way to do server side tasks with new ISP
- From: Tad J McClellan
- Re: Best way to do server side tasks with new ISP
- References:
- Re: Best way to do server side tasks with new ISP
- From: Dr.Ruud
- Re: Best way to do server side tasks with new ISP
- From: Charlton Wilbur
- Re: Best way to do server side tasks with new ISP
- From: sln
- Re: Best way to do server side tasks with new ISP
- From: Paul E. Schoen
- Re: Best way to do server side tasks with new ISP
- From: Charlton Wilbur
- Re: Best way to do server side tasks with new ISP
- Prev by Date: Re: how to format output
- Next by Date: Re: how to format output
- Previous by thread: Re: Best way to do server side tasks with new ISP
- Next by thread: Re: Best way to do server side tasks with new ISP
- Index(es):
Relevant Pages
|