Need QUICK, EASY, PHP help! points to the best answer!?

realslimeball

New member
Would the following PHP code work in sending the name and email address someone has put into an HTML <form> field to an email address I specify?

<?php

$name = $_POST['name']
$email = $_POST['email']


//To, Subject, Message, Header

mail('[email protected]', 'newsletter signup', ' . $name . ' <br> ' . $email . ', 'From: ' . $name . ' <' . $email . '>');

?>

Thanks guys! =)
 
Back
Top