Idea for addition to Cgicc class

"Stephen F. Booth" <[email protected]> Mon, 21 Jun 2004 23:36:48 -0400
Newsgroups gmane.comp.gcc.cgicc.bugs,gmane.comp.gcc.cgicc.general
Message-ID <[email protected]>
--===============1089376230==
Content-Type: multipart/signed; protocol="application/pgp-signature";
	micalg=pgp-sha1; boundary="Boundary-02=_Ql61AX3XhFBjdpi";
	charset="us-ascii"
Content-Transfer-Encoding: 7bit


--Boundary-02=_Ql61AX3XhFBjdpi
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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

Does anyone think this would be a valuable addition?

=2DStephen



--Boundary-02=_Ql61AX3XhFBjdpi
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBA16lQgolXBOamItMRAvnyAJ49uMRtNWJdPsywmg1+/8ltXBbF/QCeK59w
P+FekGD35xowZfR8DnUtF0Q=
=4KxL
-----END PGP SIGNATURE-----

--Boundary-02=_Ql61AX3XhFBjdpi--



--===============1089376230==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
bug-cgicc mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cgicc

--===============1089376230==--