PDA

View Full Version : need php help...


RevKev
05-17-2001, 05:39 AM
Can anyone help me figure out why this script isn't working?

<?
$toaddress = "revhartwig@miworship.com";
$subject = "MIWorship Prayer Request";
$mailcontent = "Name: ".$name."\n"
."E-mail: ".$email."\n"
."Type: ".$type."\n"
."Duration: ".$duration."\n"
."Prayer: ".$prayer."\n:;
mail($toaddress, $subject, $mailcontent);
?>

Thanks!

eric418
05-17-2001, 05:43 AM
$mailcontent = "Name: $name\nE-mail: $email\nType: $type\nDuration: $duration\nPrayer: $prayer\n";

This seems much easier.

eric418
05-17-2001, 05:44 AM
Also,

."Prayer: ".$prayer."\n:;

it should be:

."Prayer: ".$prayer."\n";

RevKev
05-17-2001, 05:49 AM
Thanks, eric418. I never would have caught that : instead of the ". Now, if I can just get my field verifier working... :)

superunison
05-26-2001, 12:34 AM
on that note, the expression

eregi("^.+@.+\\..+$", $dEmail);
where $dEmail is the email address you wish to check is a very simple, easy piece of code to use in order to verify an email address. many thanks to Wrox publishers for that one :)

chris