I am trying to make php validation form. I have already completed the form validation, but I still cant get the mail() function, which sends an email to the admin with the user registration info. What I want to do is have the $message variable be able to show all of the indexes of the $_POST array(elements in the form) be shown in the email $message variable. But every time I try to do this. It gives me an unexpected T_VARIABLE error. Does someone have a differnet way to do this or can tell me how to do this correctly?
btw: here is the email set-up variables I am using:
$to = 'zintron@cox.net';
$subject = 'New Registration';
$message = THIS IS WHAT I NEED TO DISPLAY ALL VARIABLES!
$from = 'From: Shimanos PHP Home (New Registration System)';