-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapply.php
More file actions
83 lines (58 loc) · 2.69 KB
/
apply.php
File metadata and controls
83 lines (58 loc) · 2.69 KB
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
<?
$strAbsPath = "/home/paulthetutor/paulthetutors.com";
include($strAbsPath . "/includes/pttec_includes.phtml");
MySQL_PaulTheTutor_Connect();
$popup = $_REQUEST[popup];
// printarray($_REQUEST);
put_ptts_header("Applying To Be A Tutor", $strAbsPath, "", $popup);
if ($_REQUEST[Submit] == "Submit"){
$_REQUEST[application_date] = date("Y-m-d");
$_REQUEST[stage] = "applied";
$_REQUEST[notes] = "applied";
;
$msg = InsertFields("PT_Prospect_Tutors", $_REQUEST, $arMandFields, '', $tdStyle, $strWhere);
echo "<div class=text_success style='text-align:center'>Your application has been received. <BR> Thanks for applying and we will be in contact soon.</div>";
$app_name = "$_REQUEST[first_name] $_REQUEST[last_name]";
$header = "From: applicant@paulthetutors.com \r\n";
$header .= "Reply-To: $_REQUEST[email]\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$app_name = "$_REQUEST[first_name] $_REQUEST[last_name]";
$body = "<html><body>New Applicant<br>
<b>Name:</b> $app_name<br>
<b>Position:</b> $_REQUEST[position]<br>
<b>Email:</b> $_REQUEST[email]<br>
<b>Phone:</b> $_REQUEST[phone]<br>
<strong>Courses</strong>: $_REQUEST[courses]<br>
<strong>Experience:</strong> $_REQUEST[tutoring_experience]<br>
<strong>Education:</strong> $_REQUEST[education]<br>
<strong>Availability:</strong> $_REQUEST[weekly_availability]<br>
<strong>Duration:</strong> $_REQUEST[duration]<br>
<strong>Transportation:</strong> $_REQUEST[transportation]<br>
<strong>Locations:</strong> $_REQUEST[locations]<br>
<strong>Other Info:</strong> $_REQUEST[other_information]<br>
<a href=\"http://www.paulthetutors.com/admin/applicants.php?&sort=id&&order=DESC\">See Applicants</a>
</body></html>
";
ptts2_mail("applicant@paulthetutors.com","Applicant $app_name",$body ,$header,'-f$_REQUEST[email]');
}
?>
<link href="includes/paulthetutors.css" rel="stylesheet" type="text/css" />
<fieldset>
<legend><strong>Application for Tutoring Position</strong></legend>
In order to tutor successfully, you should be comfortable with problems similar to these <a href="app_samp.pdf" target="_blank">sample problems</a>. If you feel comfortable tutoring at this level, please fill out the form below and we will be in touch shortly.
<form name="form1">
<table>
<tr>
<td width="300"> </td><td> </td></tr>
<?
$arFieldNames[courses] = "Courses You Can Tutor";
$strNotUsed = "stage,notes,application_date";
MySQL_BlankForm('PT_Prospect_Tutors',$arFieldNames,$arFieldsVals,$arFieldComments,$arHidden,$strNotUsed,'');
?>
</table>
</form>
</fieldset>
<?
put_ptts_footer("popup");
?>