Reply to _POST variable help

Your name:

Reply:


Posted by deeper on 10/13/26 11:28

hey all,

I have a PHP drive contact page which makes use of the basic mail()
function to send a mail commenting on the page of a photoblog.

The code looks like:

$host= $_SERVER['REMOTE_ADDR'];
$ip="$REMOTE_ADDR";
$visited_page="$HTTP_REFERER";

$recipient="me@them.com";
$subject="Contact form from site.";

############ EMAIL BODY ############
$header="From: " . $_POST[email] . "\n";

$email_body.="Name: " . $_POST[name] . "\n";
$email_body.="Message :\n";
$email_body.=$_POST[msg] . "\n\n";
############ END ############

mail($recipient,$subject,$email_body,$header,$visited_page);

What i would like the script to do is send the page in which the user
was viewing at the time. Initially i thought the HTTP_REFERER would do
the trick, but so far thats not proving correct

Am i missing something glaringly obvious?

[Back to original 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

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