How can i output 3 variables on one line in PHP mail form?

kurt

New member
Please could someone take a look at my code and show me how to consolidate this information so it outputs DD/MM/YYYY instead of on 3 different lines.

The way i have set up my form is to have 3 different boxes for day, month and year (this is due to the functionality of the graphical date box i have set up) so i do not want to change the form, just the PHP.

Here is a snippet of my code:

$email_message .= "Day: ".clean_string($date1)."\n";
$email_message .= "Month: ".clean_string($date2)."\n";
$email_message .= "Year: ".clean_string($date3)."\n";

Thanks.
 
Back
Top