Thanks all, let me try to clarify. My family members are logged in via a PHP script that checks for their name and password in my login.php. All my pages then start with.
<?php require('../login.php'); ?>
I am trying to have, when this page is accessed an email sent to me with the users name. Throwing this into the page will send me an email but I can not figure out what else I need to have the users name either in the subject or body of the email.
<?php require('../login.php'); ?>
<?php
mail('yourEmailAddress@yourDomain.com','Subject of the e-mail','This is the body of the e-mail!');
?>
I am very much a cut and paste programmer, I can figure out, sort of... what is happening after I have the code. So please.. be gentle and complete with your help / advice.