W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1998

post form example

From: Henrik Kim Berle <hkb@terma.com>
Date: Wed, 16 Sep 1998 13:13:33 +0200
Message-ID: <199809161113.NAA10931@oklahoma.terma.com>
To: www-lib@w3.org
I have now worked with the post example found in
  Library/Examples/postform.c
  
I suggest to change a few minor things in the program:
in the terminate_handler function I suggest to change the fprintf
to print a string as in the following because if the result contains
a '%' then it isn't printed.


    if (status == HT_LOADED && result && HTChunk_data(result)) {
	fprintf(stderr, "%s", HTChunk_data(result));
	HTChunk_delete(result);

Furthermore I suggest to change the HTEscape function calles to use
URL_XALPHAS instead of URL_XPALPHAS as a form value may be "1+2".


If this mailing list isn't the right place to post this information
then please diret me to the correct location.

/Henrik
+-----------------------------------+----------------------------+
|Henrik K. Berle                    | Email : hkb@terma.com      |
|TERMA Elektronik AS                | Voice : +45 45949400       |
|Bregneroedvej 144                  | Fax   : +45 45949699       |
|DK-3460 Birkeroed, Denmark         | Direct: +45 45949679       |
+-----------------------------------+----------------------------+
Received on Wednesday, 16 September 1998 07:20:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT