help me with my code 04-08-2014, 07:06 PM
#1
Hi all.
I make php code for sendig mail but i need to make the sucsess message and the erorr message with java secript.
my code working as good but as i say before i need to make the sucsess message and the erorr message with java secript.
please edit my code and help me as you can.
best regards
I make php code for sendig mail but i need to make the sucsess message and the erorr message with java secript.
Code:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html><heade><meta http-equiv=”refresh” content=”0;url=http://”></head><body>
<?php
$to = "name@ex.com";
$subject = "New Message";
$name = $_POST['name'];
$email = "";
$message = $_POST['message'];
$e_mail = $_post['e_mail'];
$formcontent="name: $name \n--------------------------\nEmail: $email \n------------------------\n message: $message";
if (mail($to, $subject, $formcontent)) {
echo ("<p>Thank You!!<br>Email successfully sent!<p><br>" . "<a href='index.html' style='text-decoration:none;color:#ff0099;'>Click here to Return to Home..</a></body></html>");
} else {
echo ("<p>Failed!! please try again..<p><br>" . "<a href='index.html' style='text-decoration:none;color:#ff0099;'>Click here to Return to Home..</a>");
}
?>
</body></html>my code working as good but as i say before i need to make the sucsess message and the erorr message with java secript.
please edit my code and help me as you can.
best regards


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)