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]
|