You are here: Re: email basics « PHP Language « IT news, forums, messages
Re: email basics

Posted by Geoff Berrow on 05/27/07 09:57

Message-ID: <LNWdnUYdJMmLVcXbnZ2dnUVZ_rOqnZ2d@giganews.com> from Kevin
Raleigh contained the following:

>can you advise

Newer versions of PHP have register globals disabled by default as a
security measure.

You'll find the variables in the $_POST array so you need something
like

$msg = "Sender's Full Name: \t".$_POST[' sender_name']."\n";
$msg.= "Sender's E-Mail:\t".$_POST[' sender_name']."\n";

and so on.

Note the use of the dot as the concatenation operator. Alternatively
you could do

$msg = "Sender's Full Name: \t$_POST[ sender_name]\n";
$msg.= "Sender's E-Mail:\t$_POST[ sender_name]\n";

and so on.

Some people prefer to simply extract the variables first
$sender_name= $_POST[ 'sender_name'];
$sender_email=$_POST[ 'sender_email'];
etc..
Put this at the beginning and your existing code will work just fine.

--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

 

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

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