Re: Mail Handling Question

From: Date: Tue, 30 Oct 2001 22:09:55 +0000
Subject: Re: Mail Handling Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72931@lists.php.net to get a copy of this message
On Tuesday 30 October 2001 01:56 pm, Reggie White wrote: > Now here's where I'm stuck. When the user is finished previewing the html > letter, I want two things to happen: When the user submits, I want the page > itself (with the variable in it) to be emailed to a specified recipient. I > also want a blind copy of specific information from the form to be email to > me for reporting purposes. > > Is this possible? and how? Sure -- when you include the variables in the form letter, also include them as hidden form fields. Then, when the user submits the form, you have all those same variables that you can do whatever with. Another alternative to hidden form fields would be to use url variables and put them in the ACTION="..." part of your form tag. (i.e. <form action="foo.php?var1=1&var2=2...) Then, you can simply use the mail() handler as you would normally. hth --kurt

« previous php.general (#72931) next »