[PHP] Happy new year!

2007-01-01 Thread JMCS Niagara (Jeff)
Happy new year everyone :)

[PHP] New User Sign up Notification

2006-12-22 Thread JMCS Niagara \(Jeff\)
hi there. I'm looking to create a new user signup. So when someone signs up, it 
emails admin the Username, Real Name, and IP address.

I have this code called newusersignupnotification.php

?php
$to = '[EMAIL PROTECTED]'; // The email address you want the notification sent 
to
$subject = 'Member has registered on YoS'; // What do you want the subject line 
of your notification to be?
$memberSpecs = 
hr size=2 width=300 align=left.
bUsername:/b .$_SESSION['username'].
br.
bReal Name:/b .$_SESSION['firstname'].  .$_SESSION['lastname'].
br.
bDate/b .date('l dS \of F Y h:i:s A').
br. 
bIP address:/b .$_SERVER['REMOTE_ADDR'].
br.
bSystem Specs:/b .$_SERVER['HTTP_USER_AGENT'].
br;
$headers = Content-type: text/html \nFrom: [EMAIL PROTECTED];
$body = body
br
table cellspacing=1 cellpadding=2 align=center
tr
td
bfont face=arial size=2A new member has registered! /font/b

/td/tr
tr
td
font face=arial size=2 .$memberSpecs. /font
/td/tr/table
/body;
mail($to,$subject,$body,$headers);
?

When I place this in the join.php file .. When someone goes to join.php it 
automatically emails it .. and I get date, time, ip, etc etc everything except 
for the username and first name.. Obviously, because the person hasn't typed in 
anything.

When they filled out the sign up form, There's a button that says Sign Up .. 
Basically, when they click this button, NOW is when I want it to email me the 
details.

Any ideas?

Thanks guys