View Full Version : Passing variable to cgi script
mpjbrennan
06-30-2002, 02: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.
patrick
firepages
06-30-2002, 04: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?
mpjbrennan
06-30-2002, 05:23 PM
Hi Firepages,
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.
thanks
Patrick
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.