I created a form with a submit button.. ALMOST DONE>..BUT
Ok.. So I finally figured out that..in order for me to see. BODY means the email content itself.. and the subject is subject. for some reason I thought all the data was going to be sent in the body of the text.. my script is actually going to be
name, email, comments.. --email I left as the subject. (in the variable ofcourse) even though on the page itself it says email.. but I can live with that .. and the body says Comments.. which is fine. ..but by first field which says NAME.. and the variable is .. TO.. how come I cant see this in the email as the person who sent it...don't need there email there but at least where they can put there name..
...This is the code I modified..everthig is fine so far on this test page.. but its that first field that is not generating any text.. into the email..
can you help one last time.... Greatly appreciate it for this PHP first timer..
<?php
$to = $POST['to'];
$subject = $POST['subject'];
$body = $_POST['body'];
mail( 'sandro@mgmediaworks.com', $subject, $body, 'From: ' . $email );
header( 'Location: http://www.mgmediaworks.com' );
?>
OH.. OH..I just replaced second line from last (to) instead of 'from and what I got was this.. wwwuser@yourhostingaccount.com --guess something triggered, not exactly what i was looking for ..but I'm here for suggestions.... and No.. I have not moved from this computer so now it's about 8 hours running on this trial and error php newcomer