On 26 Sep 98, at 8:19, Eric Poole wrote:
> I can easily write a C program that takes the NAA membership ID or the
> e-mail address and extracts the rest of the information from the database.
> What I don't know how to do is make the information, which was extracted
> from the database, magically show up on the form so that all the
> auctioneer has to do is fill in the stuff that's not in the database (e.g.
> information on specific auctions).
> If there is a way to do it that can be done in C and doesn't involve perl
> or java, that would be a big help, because I'm not familiar with the
> latter two languages just yet and I'd like to find a way to implement this
> fairly quickly.
> If you can help me figure this out, please drop by
> www.auctionweb.com/submit.htm and take a look at the form, so you can see
> what I'm doing.
If I've understood right, this is a simple HTML problem...
In the form field you've to add:
VALUE="DB retrieved value"
eg..
First empty form...
<HTML>
...
<FORM METHOD="POST" NAME="itsname"
ACTION="YOURCGI">
<INPUT NAME="FIRSTFIELD" TYPE="TEXT">
<INPUT NAME="SECONDFIELD" TYPE="CHECKBOX">
</FORM>
snip
CGI check if evrything is filled, check if there is a user in the DB
with same name etc... get the empty fields and then send back...
Second filled form...
<FORM METHOD="POST" NAME="itsname"
ACTION="YOURCGI">
<INPUT NAME="FIRSTFIELD" TYPE="TEXT"
VALUE="DBRetrievedvalue">
<INPUT NAME="SECONDFIELD" TYPE="CHECKBOX"
CHECKED>
or
<INPUT NAME="SECONDFIELD" TYPE="CHECKBOX">
// if that field was tru or false on the DB
//the same for RADIO
// for SELECT/OPTION fields the flag is SELECTED in spite of
//CHECKED
</FORM>
The second form will be filled...
Now you've to decide what to do if some data are different from the
previously inserted ones... etc...
The idea is right, maybe it's right also the HTML :-)
-------------------------------------------
Ivan Sergio Borgonovo [EMAIL PROTECTED]
Webmaster Gorilla Bookstore http://www.gorilla.it
Tel. +39 2 3311105/34530455 Fax. +39 2 34531591
Via Mac Mahon 9, Milano, Italy
-------------------------------------------
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------