Solved

CGI-VB-GET

Posted on 1999-01-23
3
167 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

864 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now