Re: PHP error on form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

First some of your $_POST array variables are written like $POST['var'], you
need to change them
to $_POST['var']. Then because you are not using the dot operator in your
string variables and you
are using a associative array you must enclose the array variable in
{$arr['var']} tags!

// enclose with {...}

$msg .="Senders Name: {$_POST['senders_name']}\n";
$msg .="Senders E-MAIL: {$_POST['senders_email']}\n";
$msg .="Senders Name: {$_POST['message']}\n\n";
$mailheaders .="Reply-To: {$_POST['sender_email']}\n";

// or use the dot operator

$msg .="Senders Name: " . $_POST['senders_name'] . "\n";
$msg .="Senders E-MAIL: " . $_POST['senders_email'] . "\n";
$msg .="Senders Name: " . $_POST['message'] . "\n\n";
$mailheaders .="Reply-To: " . $_POST['sender_email'] . "\n";


Sonia

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux