06-30-2002, 03:37 PM
I have a mail form generated by php on a site where a user has to log in and the login name is session-registered. How can I pass the value of the login name along with the form data to the cgi script that sends the mail.
06-30-2002, 05:15 PM
Hi, how is the user authenticated ? - if you are using HTTP_AUTHENTICATION (.htaccess) etc then the username should be available to the CGI via the CGI var $REMOTE_USER , else I suppose you could tag the username along as a POST var ?
need more info I think?
06-30-2002, 06:23 PM
I solved the problem by setting a hidden <input> element with the value of the login variable. Fairly obvious when I think about it, but I'm new to server-side and just gettign the hang of it.