[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-cgicc] Idea for addition to Cgicc class

From: Stephen F. Booth
Subject: [help-cgicc] Idea for addition to Cgicc class
Date: Mon, 21 Jun 2004 23:36:48 -0400
User-agent: KMail/1.6.2

I was thinking about how it is essentially a pain to simply print out or grab 
the value of a single form element using the STL iterators:
      form_iterator name = cgi.getElement("name");
      if(name != cgi.getElements().end()) {
         cout << "Your name: " << **name << endl;
If people didn't care whether or not the element was actually found, something 
      cout << "Your name: " << cgi["name"] << endl;
would be infinitely easier.  Of course, this assumes that only one element 
called 'name' exists.

Does anyone think this would be a valuable addition?


Attachment: pgpIyFDXWno2g.pgp
Description: signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]