|
$mail_ok=false; //indicates when the mail was sent or not (false=not sent ; true=sent)
if (isset($_POST["mail_button_send"])) //if we submited the mail form to send
include "mail_send.inc"; //including the file that sends the mail (this file also sets the $mail_ok indicator)
if ($mail_ok==false) //if the mail wasn't sent correctly, or info is missing, or form was not yet submitted
include "mail_form.inc"; //including the file that prints the mail form
?>
|
|