Win 7, XAMPP local, PHP 5.3.
I came across this quite by accident for using multiple Headers in a mailto() form I was having trouble getting to work the way I wanted it to. Namely:
$to = "some address";
$subject = "Some Form\n";
$header = "From: $name\n";
$header .= "Reply-To: address\n";
$header .= "Return-Path: address\n";
I'm specifically referring to the " .= " in the 2nd & 3rd $header lines. It makes sense I think and it's able to be called as simply $Header in the mailto() line.
Now I'm trying to apply something similar to other fields I'd like delivered to me when I receive the visitor's email form. The " .= " is apparently only good for Headers??
I've tried to Google, looked at php.net and w3schools, but cannot find either the " .= " or any other method of putting things together to send additional data to me when I received the forms. For instance, I'd like to combine the Message, the Sender's name and his e-mail address into one collection similar to what I did with the Headers. My mailto line looks like:
if(mail($to,$subject, $comments, $respond, $header)) { ...
I'd appreciate 1. any leads, URLs or even sample code on how to go about this, and also 2. Any links that talk about the " .= " business, too.
TIA.
Rivet`
[/SIZE]