I have a form that posts 2 variables. As a test, I can loop the variables and see the names and values (see the last part of this message).
However if I try to set a variable using:
$To = $_Post['OwnerEmail'];
the variable $To is empty
// For example, the 2 lines below produce a blank value
$To = $_Post['OwnerEmail'];
echo "To:". $To;
//-------------------------
// The lines below produce the output shown later
while($element = each($_POST))
{
echo $element['key'];
echo ' - ';
echo $element['value'];
echo "<br>";
}
// Output from lines above ----------------
// Note that OwnerEmail is a valid element name
//OwnerName - KARL E IN
//OwnerEmail -
[email protected]
How can I get the OwnerEmail value (
[email protected])into the variable $To ?