Solved

CGI-VB-GET

Posted on 1999-01-23
3
169 Views
Last Modified: 2013-12-25
Using a VB CGI, I know how to parse the params an their values from a <FORM> by using method="POST".
How can I parse these params, and how can I recognize them in the CGI, using method="GET"?
0
Comment
Question by:vali
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
mouatts earned 10 total points
ID: 1832381
The params are in an environment variable called QUERY_STRING.
They will be URL Encoded (that is to say some characters will be written as there hex value preceded by an % and all spaces will be converted to +. Each name, value pair will be delimited by a & and each name and value seperated by a =.

So if the url was

http://mysite.mydomain.com/myprog.cgi?p1=fred&p2=fred+flintstone

then QUERY_STRING will contain
p1=fred&p2=fred+flintstone

HTH
Steve


0
 

Author Comment

by:vali
ID: 1832382
I think your answer goes well for ''GET"- method, what about the "POST"-method?
Isn't it different? I think it is. So....?

Thanks anyway, Steve!
0
 

Author Comment

by:vali
ID: 1832383
I reconsider the answer.
I give you the 15 points.

Thanks for answering....!

Vali,

PS. Case closed.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question