Dear pmwiki addicts,<br><br>I had no reply to my question so I bother you again with it. Thanks for taking a few minutes to read it because I think the answer is rather simple.<br><br>Benoit<br><br><br><br><div><span class="gmail_quote">
2007/1/7, Benoît DUTILLEUL <<a href="mailto:benoit.dutilleul@googlemail.com">benoit.dutilleul@googlemail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear all,<br><br>I've been trying to use the recipe mailform2 to send to an email address the data collected from 2 forms on a single website. Here is the piece of code I am using and that I can't get to work:<br>
<br>
include_once("$FarmD/cookbook/mailform2.php"); <br>#<br>#Application form<br>if ($pagename == 'Main.ApplyForPosition') {<br>$Mailform2Subject='New volunteer candidate';<br>$Mailform2SuccessPage='
Main.SuccessfulVolunteerRegistration';<br>$Mailform2FailurePage='Main.VolunteerRegistrationFailure';<br>$Mailform2Recipient='<a href="mailto:me@mydomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
me@mydomain.com</a>';<br>$Mailform2Text = "First name:" . $_POST['first_name'] . "Last name:" . $_POST['last_name'] ;
<br>#<br>#Subscription to the newsletter<br>} else {<br>$Mailform2Subject='New subscription';<br>$Mailform2SuccessPage='Main.SuccessfulRegistration';<br>$Mailform2FailurePage='Main.RegistrationFailure
';
<br>$Mailform2Recipient='<a href="mailto:me@mydomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">me@mydomain.com</a>';<br>$Mailform2Text = $_POST['username'] . ": " . $_POST['email'] . $FullName;
<br>}<br><br>The script does not work because even if I am on the page
Main.ApplyForPosition, it goes in the "else".<br><br>Can you help me to find the problem?<br>Kind regards,<br><br>Benoit<br><br><br>
</blockquote></div><br>