Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Email form

Options
  • 30-04-2005 4:02pm
    #1
    Registered Users Posts: 884 ✭✭✭


    Hi there ..... i have an email form here .... and it works fine but how do i use $email as the from email address when i receive it in my acc. ??

    And how can i tighten up on the security of it ??
    
    <?php
    
    $name = $_POST['name']; 
    $email = $_POST['email'];
    $topic = $_POST['topic']; 
    $subject = $_POST['subject']; 
    $comment = $_POST['comment']; 
    
    $mailsend = @mail("myemail@email.com","$topic - $subject","$name - - $email - - $comment"); 
    
    If ($mailsend){
    echo "Your email has been sent<br><br>";
    echo "Please allow 1-2 days for reply";
    } else {
    echo "There was an error sending this email<br> Go back and fill in the form correctly this time !!";
    }
    
    ?>
    
    

    Any ideas ??


Comments

Advertisement