CGI and C++

K

kieran

Hi,
I know this isn't really standard C++, but
does anyone know how you can read POST variables in form submittal. I
know for GET it is getenv you use.
Help much appreciated,
Kieran.
 
A

Alf P. Steinbach

* (e-mail address removed):
I know this isn't really standard C++, but
does anyone know how you can read POST variables in form submittal. I
know for GET it is getenv you use.
Help much appreciated,

Hm. I typed "cgi post get" into the browser's search box, clicked on the
second Google result (the first was in Japanese or Chinese or something),
and voilà, a Perl subroutine to read CGI input regardless of method. Now
all you have to do is to translate that from Perl to C++, which is easy.

Btw., there's always more than one way to skin a bear.

So don't get too hung up on "I know that to do X one uses Y"; in a large
number of cases (including this one) that's just _one_ cookbook recipe,
and perhaps the cookbook author had to write something everyone could
use regardless of skill and equipment, or was illustrating a particular
technique, or whatever: _think_ (e.g. like I did when I saw your question),
and only use recipes as starting points, or at least make sure you
understand the recipes you use literally without modification.
 
D

David

Hi,
I know this isn't really standard C++, but
does anyone know how you can read POST variables in form submittal. I
know for GET it is getenv you use.
Help much appreciated,
Kieran.

There are several good C++ libraries that cover CGI activity. I
use CGI++. Search Google for "C++ CGI free" and you'll find several.
Pick one that makes sense to you.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top