";
$pagetitle="Thank You!"; // Title to be displayed on the sent info page.
// Enter the code that you want to appear before the information submitted.
// Make sure you put a / mark before all double quotation marks or the script won't work.
// the \n at the end of the line is to create a new line in the HTML SOURCE. It DOES NOT create a break or new line
// when viewing it on the internet. Put these at the end of each line in the header and footer if you wish.
// They aren't required.
$header = "\n
\n
\n
\n
\n";
// Enter the code you'd like displayed after the information submitted.
// Make sure you put a / mark before all double quotation marks or the script won't work.
// the \n at the end of the line is to create a new line in the HTML SOURCE. It DOES NOT create a break or new line
// when viewing it on the internet. Put these at the end of each line in the header and footer if you wish.
// They aren't required.
$footer = "\n
|
\n
\n";
// This code gets the ip address of the person submiting the form.
// You shouldn't remove it if you want to use this feature.
if (getenv(HTTP_CLIENT_IP)){
$user_ip=getenv(HTTP_CLIENT_IP);
}
else {
$user_ip=getenv(REMOTE_ADDR);
}
$username = $HTTP_POST_VARS['username'];
$emailaddress = $HTTP_POST_VARS['emailaddress'];
$course = $HTTP_POST_VARS['course'];
$networklogin = $HTTP_POST_VARS['networklogin'];
$serveraccount = $HTTP_POST_VARS['serveraccount'];
$problemselection = $HTTP_POST_VARS['problemselection'];
$otherproblem = $HTTP_POST_VARS['otherproblem'];
// Edit the following lines to customize how the email sent to you will look.
// To add more fields, just copy and paste the line, and edit the info between the " marks.
// The last 2 lines will send the users browser information and their ip number with the mail.
// Just in case. :)
$mailbody="User Name:===$username\n";
$mailbody.="User Email===$emailaddress\n";
$mailbody.="Course===$course\n";
$mailbody.="Network Login ID===$networklogin\n";
$mailbody.="Server Login ID===$serveraccount\n";
if (is_array($problemselection))
{
reset ($problemselection);
while (list ($key, $val) = each ($problemselection)) {
$mailbody.="Problem Selections===$key => $val\n";
}
}
else
{
$mailbody.="Problem Selections===$problemselection\n";
}
$mailbody.="Other Problem Statements===$otherproblem\n";
$from_who="Lab User Form<". $emailaddress . ">";
mail("$youremail", "$emailsubject", "$mailbody", "From: $from_who"); // Send the email.
$comments = nl2br($comments);
// Page HTML comes next.
?>
DArt Account Problem Report Confirmation
DArt User Error Report Form Confirmation
Your message has been sent to the lab technician.
You will receive an email from the technician once the problem has been analyzed
and a solution proposed.
|
Submitted information:
Name:
Email Address:
Course:
Network Login ID:
DArt Server Account:
Reported Problems
$val \n");
}
}
else
{
print ("$problemselection\n");
}
//print ("$Soups \n");
?>
Other Problems:
\n\n Copyright ©";
echo (date("Y"));
echo " Return to La Salle\"University\" University\n";
}
else
{
print " Return to La Salle University \n";
}
?>
|