Forum Moderators: coopster
Here is the form:
<form>
<input type="text" name="Name" size="20">
<input type="text" name="Email" size="20">
<input type="submit" value="Submit" name="submit">
</form>
I want to insert a mail function so that the Name and Email will be sent to my email address.
This is the flow I want.
1. A user fills the form to sign up.
2. As the sign up page confirms his registration, I will receive an email in my box with the persons name and email address.
This is my attempt so far.
<?php
$to = "someemailatsomeemaildotcom" ;
$subject = "New Registration" ;
$msg = "$Name",$Email" ;
mail($to, $subject, $msg) ;?>
I received the email alright but without the values for "Name" and "Email".
Can someone put me right.
Also how can I send a blind carbon copy in php mail, in this case.