This should work, if you actually have the email in the GET, while the form was submitted.
What is you whole formIt - call and your form?
Be aware, with this method any user can send the contact-mail to any email-address.
Thank you Bruno,
I had the e-Mail in the GET and it also shows up in a hidden field by doing this:
<input type="hidden" name="praxis" id="praxis" value="[[!getmaildata]]"/>
this is the formit call:
[[!FormIt?
&hooks=`spam,email,redirect`
&emailTpl=`tpl_kontakt`
&emailTo=`[[!getmaildata]]`
&emailBCC=`[[+fi.email]]`
&emailSubject=`Nachricht an Sie über Domain`
&redirectTo=`41`
&validate=`nachname:required,
email:email:required,
nachricht:required:stripTags`
]]
I tried it with a the hidden field above, too
and then
&emailBCC=`[[+praxis]]`
Both didn't work.
Thank you for your statement about GET, I'll try to put the email (it's a TV) in a session on the page before.
discuss.answer
You haven't it in the GET, when you send your form with the post-method
then you would need to read the $_POST or $_REQUEST, but you could also store it to a Session-var, like it seems, you are trying
But it has to be this way, then:
if (isset($_GET['emailadresse'])){
$_SESSION['emailadresse'] = $_GET['emailadresse'];
}
return $_SESSION['emailadresse'];