W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1998

Post Form Help!!!!

From: <EALTER@mail.wshs.fcps.k12.va.us>
Date: Wed, 16 Dec 1998 09:19:33 EST
To: www-lib@w3.org
Message-ID: <13701BB73FB@mail.wshs.fcps.k12.va.us>
okay i need help with post form

if i have a field like is on a web page on another server

<input type="password" name="passwd" size="16" maxlength="16">

to input the text i think i would do

char * uri = "http:\\www.someplace.com"
HTAssocList * formfields = HTAssocList_new();
HTAssocList_addObject(formfields, "password" , "vectra"); 
//vectra is the password
HTRequest * request = HTRequest_new();
HTRequest_setOutputFormat(request, WWW_SOURCE);
HTAnchor * anchor = HTAnchor_findAddress(uri);
HTChunk * result  = HTPostFormAnchorToChunk(formfields, anchor, request);
Received on Wednesday, 16 December 1998 09:23:59 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 17:59:25 EDT