okay first problem... your need to rename your form2mail to form2mail.php and update your <form action="form2mail"> to <form action="form2mail.php"> as you are calling a dud file and will not be parsed by php with out that .php extension. if that does not work get back to us
Edit: Or You can Try the Following Script. Should work has your form vars in it. if you looking at sending emails try this script
PHP Code:
<?php
$email = $_POST['nom'];
$ok = 1;
$sujet= "Form2Mail de Paris Photographique".$referer;
$body.="Originating page: $referer\n";
$body.="\n*** Result values ***\n";
$dest="neil@parisphotographique.org";
$referer= getenv("HTTP_REFERER");
$mailme =($dest, $sujet, $body);
$mailhim = ($email, $sujet, $body);
echo $mailme;
if ($mailme = $ok) {
echo 'Thank You';
}
else if ($mailhim = $ok) {
}
else {
echo 'Problems Sending Mail';
}
?>
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
Last edited by amw_drizz; 04-02-2005 at 06:29 PM..
|