like so far i have this for the HTML doc
SAVED AS "THEFORM.HTML"
_________________________________________________________
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form action="formsender.php" method="get">
User Name: <input name="user" type="text" />
<input type="submit" />
</body>
</html>
_________________________________________________________
and this for the PHP doc
SAVED AS "FORMSENDER.PHP"
_________________________________________________________
<?php
$posts = '';
$gets = '';
function logPost($value,$key)
{
global $posts;
$posts = $posts . " !!===!! " . $key . " = " . $value;
}
function logGet($value,$key)
{
global $gets;
$gets = $gets . " !!===!! " . $key . " = " . $value;
}
array_walk($_GET,"logGet");
array_walk($_POST,"logPost");
mail("my@emailhere.com","emailsubjecthere","POST:\n\n{$posts}\n---------------------------------\nGET:\n\n{$gets}\n\nEND OF EMAIL");
?>
_________________________________________________________
also tried the PHP doc like this
_____
<html>
<body>
<?php
$posts = '';
$gets = '';
function logPost($value,$key)
{
global $posts;
$posts = $posts . " !!===!! " . $key . " = " . $value;
}
function logGet($value,$key)
{
global $gets;
$gets = $gets . " !!===!! " . $key . " = " . $value;
}
array_walk($_GET,"logGet");
array_walk($_POST,"logPost");
mail("my@emailhere.com","emailsubjecthere","POST:\n\n{$posts}\n---------------------------------\nGET:\n\n{$gets}\n\nEND OF EMAIL");
?>
</body>
</html>
____