laserdude
04-02-2007, 12:38 PM
Please check my code , when i click submit in html page
the browser just displayes the code as it is it does not executes them Please check
<?
if ($_POST["action"] == "send"){
if ($_POST["name"] and $_POST["email"] and $_POST["message"] ){
mail (
"laser@xyz.com,
"reply",
"
Name: ".$_POST['name']."
E-mail: ".$_POST['email']."
Message: ".$_POST['message']."
",
"From: ".$_POST['name']." <".$_POST['email'].">");
echo '<p align="center"><font color="#003366">Thanks !<br>Your message has been sent.<br> I got it.</font></p>';
}
else{
echo '<p align="center"><font color="#FF0000">Please fill in all data!<br>All fields are obligatory.</font></p><p><a href="contactEN.html">[back]</a>';
}
}
the browser just displayes the code as it is it does not executes them Please check
<?
if ($_POST["action"] == "send"){
if ($_POST["name"] and $_POST["email"] and $_POST["message"] ){
mail (
"laser@xyz.com,
"reply",
"
Name: ".$_POST['name']."
E-mail: ".$_POST['email']."
Message: ".$_POST['message']."
",
"From: ".$_POST['name']." <".$_POST['email'].">");
echo '<p align="center"><font color="#003366">Thanks !<br>Your message has been sent.<br> I got it.</font></p>';
}
else{
echo '<p align="center"><font color="#FF0000">Please fill in all data!<br>All fields are obligatory.</font></p><p><a href="contactEN.html">[back]</a>';
}
}