mason20034
-
Posts
6 -
Joined
-
Last visited
Never
Posts posted by mason20034
-
-
yes twice
-
no im using outlook and a ntlworld email address.
im using it on a free web hosting account for testing puroposes
the address is http://mailmev1.awardspace.com/mail.htm -
its showing the data has been submited to message. and ive checked my junk email box but there is noting there i cant understand it at all
-
no nottings working tried several scripts on sevral web hosts. begining to think php is not for me.
not using hotmail just used that address as i dint not want to give out my email address. i am using ntlworld and outlook -
hi this is the first php i have written but i am having trouble getting it to work, server supports php, and it runs fine the email just isnt getting recived. any ideas.
<?php
if(isset($_POST['submit'])) {
$to = "mason-@hotmail.com";
$subject = "Form";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>
First script
in PHP Coding Help
Posted
cheers all, james