1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
|
" codeBody "
php
als (isset ($_POST [„Aanvrager“])) {
// GEEFT HIERONDER ZONODIG DE 2 LIJNEN UIT
$email_to = „jbrandt@harrisburgu.edu“;
$email_subject = „Verzoek MediaSite“;
$email_from = „helpdesk@hu.lcl“;
$error = „iets ging verkeerde, contactHelpdesk bij 5177“;
de functie stierf ($error) {
// uw foutencode kan hier gaan
echo „wij zeer droevig zijn, maar die er was fout met voorgelegd wordt gevonden vorm uw. “;
weergalm „Deze fouten lijken below.
“;
weergalm $error. „
“;
de echo „gaat gelieve terug en deze errors.
“ te bevestigen;
matrijs ();
}
// bevestiging er bestaan verwachte gegevens
als (! isset ($_POST [„Class_Name“]) ||
! isset ($_POST [„Aanvrager“]) ||
! isset ($_POST [„Presentator“]) ||
! isset ($_POST [„Recording_Title“]) ||
! isset ($_POST [„Date_Start“]) ||
! isset ($_POST [„Date_End“]) ||
! isset ($_POST [„Start_Time“]) ||
! isset ($_POST [„End_Time“]) ||
isset ($_POST [„Room_Number“]) ||
isset ($_POST [„Internal_external_presentation“]) ||
isset ($_POST [„Student_Presentation“]) ||
gestorven („wij zijn droevig, maar er schijnt een probleem met voorgelegd vorm uw te zijn. “)
Class_Name = $_POST [„Class_Name“]; vereist //
$Requestor = $_POST [„first_name“]; vereist //
$Presenter = $_POST [„Presentator“]; vereist //
$Recording_Title = $_POST [„Recording_Title“]; vereist //
$Date_Start = $_POST [„Date_Start“]; vereist niet //
$Date_End = $_POST [„Date_End“]; vereist //
$Start_Time = $_POST [„Start_Time“]; vereist //
$End_Time = $_POST [„End_Time“]; vereist //
$Room_Number = $_POST [„Room_Number“]; vereist //
$Internal_external_presentation = $_POST [„Internal_external_presentation“]; vereist //
$Student_Presentation = $_POST [„Student_Presentation“]; vereist //
$Special_Request = $_POST [„Special_Request“]
$email_message = de „hieronder details van de Vorm. \ n \ n“;
functie het clean_string ($string) {
$bad = serie („tevreden-type“, „bcc: “, „aan: “, „CC: “, „href“);
terugkeer str_replace ($bad, "", $string);
}
$email_message. = „Class_Name: “ .clean_string (Class_Name). „\ n“;
$email_message. = „Aanvrager: “ .clean_string ($Requestor). „\ n“;
$email_message. = „Presentator: “ .clean_string ($Presenter). „\ n“;
$email_message. = „Recording_Title: “ .clean_string ($Recording_Title). „\ n“;
$email_message. = „Date_Start: “ .clean_string ($Date_Start). „\ n“;
$email_message. = „Date_End: “ .clean_string ($Date_End). „\ n“;
$email_message. = „Start_Time: “ .clean_string ($Start_Time). „\ n“;
$email_message. = „End_Time: “ .clean_string ($End_Time). „\ n“;
$email_message. = „Room_Number: “ .clean_string ($Room_Number). „\ n“;
$email_message. = „Internal_external_presentation: “ .clean_string ($Internal_external_presentation). „\ n“;
$email_message. = „Student_Presentation: “ .clean_string ($Student_Presentation). „\ n“;
$email_message. = „Special_Request: “ .clean_string ($Special_Request). „\ n“;
// leidt tot e-mailkopballen
$headers = „van: “. $email_from. „\ r \ n“.
„Antwoord-aan: “. $email_from. „\ r \ n“.
„X-Mailer: PHP/“. phpversion ();
@mail ($email_to, $email_subject, $email_message, $headers);
? >
Dank u voor het contacteren van de Universitaire Helpdesk van Harrisburg. Wij zullen in aanraking met u zeer spoedig zijn.
}
? >
|