Thanks for your help. So I did what you said, turning on the register_globals in my php.ini file.
I must be missing something else becuase Iam getting the same message again.
+++++++++++++++++++++++
Notice: Undefined variable: Last in E:\Intranet\Phonebook\add.php on line 12
Notice: Undefined variable: First in E:\Intranet\Phonebook\add.php on line 12
Notice: Undefined variable: Degree in E:\Intranet\Phonebook\add.php on line 12
Notice: Undefined variable: Title in E:\Intranet\Phonebook\add.php on line 12
Notice: Undefined variable: Dept in E:\Intranet\Phonebook\add.php on line 12
Notice: Undefined variable: Building in E:\Intranet\Phonebook\add.php on line 12
Notice: Undefined variable: Room in E:\Intranet\Phonebook\add.php on line 12
Notice: Undefined variable: Ext in E:\Intranet\Phonebook\add.php on line 12
Notice: Undefined variable: Beeper in E:\Intranet\Phonebook\add.php on line 12
Notice: Undefined variable: Hospital in E:\Intranet\Phonebook\add.php on line 12
Thank You! This information will be added shortly
+++++++++++++++++++++++
Here is my code again and also attached is the php.ini file.
I feel so clueless :queasy:
Thanks in advance 🙂
<html>
<head>
<title>Request to Add a New Employee</title>
<link rel="stylesheet" type="text/css" href="/styles/net.css">
</head>
<body>
<?php
$to="manmeet.dhamoon@nychhc.org";
$message=" Last Name: $Last\n First Name: $First\n Degree: $Degree\n Title: $Title\n Dept: $Dept\n Building: $Building\n Room: $Room\n Ext: $Ext\n Beeper: $Beeper\n Hospital: $Hospital\n ";
if(mail($to,"Add New Employee",$message,"From: New HHC user\n")) {
echo
?>
<div align="center">
<table>
<tr>
<td width="500" height="53" valign="top" align="center">
<p align="left"><b><font face="Times New Roman" color="#000000" size="5">Thank You! This information will be added shortly</font></b>
</p>
</td>
</tr>
</table></div>
<?php
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>
</body>
</html>