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 &lt;<a href="mailto:benoit.dutilleul@googlemail.com">benoit.dutilleul@googlemail.com</a>&gt;:</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&#39;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&#39;t get to work:<br>
<br>
include_once(&quot;$FarmD/cookbook/mailform2.php&quot;); <br>#<br>#Application form<br>if ($pagename == &#39;Main.ApplyForPosition&#39;) {<br>$Mailform2Subject=&#39;New volunteer candidate&#39;;<br>$Mailform2SuccessPage=&#39;
Main.SuccessfulVolunteerRegistration&#39;;<br>$Mailform2FailurePage=&#39;Main.VolunteerRegistrationFailure&#39;;<br>$Mailform2Recipient=&#39;<a href="mailto:me@mydomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
me@mydomain.com</a>&#39;;<br>$Mailform2Text = &quot;First name:&quot; . $_POST[&#39;first_name&#39;] . &quot;Last name:&quot; . $_POST[&#39;last_name&#39;] ;
<br>#<br>#Subscription to the newsletter<br>} else {<br>$Mailform2Subject=&#39;New subscription&#39;;<br>$Mailform2SuccessPage=&#39;Main.SuccessfulRegistration&#39;;<br>$Mailform2FailurePage=&#39;Main.RegistrationFailure
&#39;;
<br>$Mailform2Recipient=&#39;<a href="mailto:me@mydomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">me@mydomain.com</a>&#39;;<br>$Mailform2Text = $_POST[&#39;username&#39;] . &quot;: &quot; . $_POST[&#39;email&#39;] . $FullName;
<br>}<br><br>The script does not work because even if I am on the page 
Main.ApplyForPosition, it goes in the &quot;else&quot;.<br><br>Can you help me to find the problem?<br>Kind regards,<br><br>Benoit<br><br><br>

</blockquote></div><br>