Well i ran your code and nothing happend ? like nothing at all... not errors no output.
(could have somthing to do with my error settings)
anyway i asumed that nothing was happening because your control structure wasnt working properly?
so i reworte your control structure to see if that was the problem.
<?
if (isset($_POST['mail']) || isset($_POST['phpinfo']) || isset($_POST['browsecap'])) {
$mail = $_POST["mail"];
$phpInfo = $_POST["phpinfo"];
$browscap = $_POST["browscap"];
if (strlen($mail) != 0 || strlen($phpinfo) != 0 || strlen($browscap) != 0) {
if(strtolower($phpinfo) == "yes"){
phpinfo();
}
if(strtolower($browscap) == "yes"){
$browser = get_browser(null, true);
print_r($browser);
}
if($_POST["mail"] == "yes"){
$to = "someone@somewhere.net";
$subject = "TESTING";
$body = "This is a test\n\nonly a test";
mail($to, $subject, $body);
}
}
}else {
?>
<html>
<head>
<title>PHP Tests --</title>......
<body>
it worked for me but i still dont know why your getting those errors..