You are here: Re: PHP error on form « PHP « IT news, forums, messages
Re: PHP error on form

Posted by "Sonia" on 11/14/87 11:22

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация