Hi,
i'm working on page, where I need to add contact-form.
I've used code from NiceAndSimpleForm, i mean
<?php
$EmailFrom = "blablabla";
$EmailTo = "blablabla";
$Subject = "blablabla";
$Name = Trim(stripslashes($_POST['Name']));
$City = Trim(stripslashes($_POST['City']));
$Email = Trim(stripslashes($_POST['Email']));
$Message = Trim(stripslashes($_POST['Message']));
// prepare email body text
$Body = "";
$Body .= "Imię i nazwisko: ";
$Body .= $Name;
$Body .= "\n";
$Body .= "Miejscowość: ";
$Body .= $City;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $Email;
$Body .= "\n";
$Body .= "Wiadomość: ";
$Body .= $Message;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
// redirect to success page
if($success){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>
and the problem is, that I want to have new window open with communicate that operation is succeed.
I guess I need to create a new html film, which will pop-up after message is sent, but I don't have an idea how to add line about this to quoted php file. need to use 'function popitup(url)', but how in php file?
Sorry for my english...
take care