Simple Text Box
Posted: Fri Dec 18, 2009 3:47 pm
Hey,
I made a simple PHP email sending program and I just need to add a text box for the 'Message', 'Subject', 'From', and 'To'.
In the code I am using they are already set, so every time I want to use it I need to change them.I'm confused how to do this simple thing for some reason.....
Here is the code:
Any Help is appreciated.
Thank you,
Ali J.
I made a simple PHP email sending program and I just need to add a text box for the 'Message', 'Subject', 'From', and 'To'.
In the code I am using they are already set, so every time I want to use it I need to change them.I'm confused how to do this simple thing for some reason.....
Here is the code:
Code: Select all
<?php
$to = "email@example.com";
$subject = "Subject;
$message = "Message";
$from = "your@email.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>Thank you,
Ali J.