Jump to content

mason20034

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Posts posted by mason20034

  1. ive got to go on holiday for a week now. thanks to everyone who has helped me. if anyone comes up with a solution please post and i will tell you if it has been sucessfull in a weeks time.
    cheers all, james
  2. 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
  3. 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!";
    }
    ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.