Solved

CGI-VB-GET

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

8 Experts available now in Live!

Get 1:1 Help Now