[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-cgicc] Idea for addition to Cgicc class
From: |
Stephen F. Booth |
Subject: |
[bug-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
like
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?
-Stephen
pgpBClH3j_VIK.pgp
Description: signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-cgicc] Idea for addition to Cgicc class,
Stephen F. Booth <=