A Problem on CGI

David G. Risner dgrisner at netcom.com
Tue Jan 23 14:22:39 EST 1996


On Mon, 22 Jan 1996 s95005b56 at v9001.ntu.ac.sg wrote:

> We are now developing a WWW-based travel information system using CGI
> programming. On the first page, we want users to input their names and
> passwords in order to build their own profiles and go to their sessions
> respectively. However, We have problem of the password we have to trace
> along when the user is using our system as CGI are said to be "stateless" 
> therefore we have difficulty passing information from one session to
> another and at the sametime to track whether he is the same user. Can anybody
> give suggestions on this problem? 

One way to pass information from one page to the next is to use forms.  If
you are using the POST method of transferring data in the forms, you can
insert hidden fields with the information which you would like to pass.
Hidden fields look like this:

<input type="hidden" name="goingto" value="london">

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David G. Risner                                         dgrisner at netcom.com
Southwestern University School of Law Library               Los Angeles, CA
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



More information about the Web4lib mailing list