Hi all!!!!
I have one problem. Recently, i've developed a html page on which i made this
<form method="post" action="sendmail.php">
<p><span class="style6 style19">Message:</span></p>
<p>
<input name="message" type="text" class="style15" />
Write something
</p>
<p><span class="style6 style19">Email:</span></p>
<p>
<input name="email" type="text" class="style15" />
Write your email </p>
<p align="left"><span class="style6 style19">City</span></p>
<p align="left">
<input name="city" type="text" class="style15" />
Write the name of the city </p>
and the problem is on my sendmail.php page which goes like this
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$city = $_REQUEST['city'] ;
if (!isset($_REQUEST['email'])) {
header( "Location: http://www....................." );
}
elseif (empty($email) || empty($message) || empty($city) ) {
header( "Location: http://www......................" );
}
else {
mail( "
[email protected]", "Text", $message, $email, $city,
"From: $email" );
header( "Location: http://www......................" );
}
?>
the problem is that it will not send this if i state here -> mail( "
[email protected]", "Text", $message, $email, $city,
"From: $email" );
those three bolded,but only if i state message and email....
where is the logic in that...please i need help.if someone didn't understand i'm willing to explain it better!!!!