Dear all,
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:
include_once("$FarmD/cookbook/mailform2.php");
#
#Application form
if ($pagename == 'Main.ApplyForPosition') {
$Mailform2Subject='New volunteer candidate';
$Mailform2SuccessPage='Main.SuccessfulVolunteerRegistration';
$Mailform2FailurePage='Main.VolunteerRegistrationFailure';
$Mailform2Recipient='[EMAIL PROTECTED]';
$Mailform2Text = "First name:" . $_POST['first_name'] . "Last name:" .
$_POST['last_name'] ;
#
#Subscription to the newsletter
} else {
$Mailform2Subject='New subscription';
$Mailform2SuccessPage='Main.SuccessfulRegistration';
$Mailform2FailurePage='Main.RegistrationFailure';
$Mailform2Recipient='[EMAIL PROTECTED]';
$Mailform2Text = $_POST['username'] . ": " . $_POST['email'] . $FullName;
}
The script does not work because even if I am on the page
Main.ApplyForPosition, it goes in the "else".
Can you help me to find the problem?
Kind regards,
Benoit
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users