-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend_email.php
More file actions
74 lines (70 loc) · 1.97 KB
/
send_email.php
File metadata and controls
74 lines (70 loc) · 1.97 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
<?php
session_start();
include ("dbconnect.php");
?>
<?php
if (!$_SESSION['student_email']) {
?>
<script language="JavaScript">
window.location = "index.php";
</script><?php } else {
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include("head.php"); ?>
</head>
<body>
<div id="templatemo_wrapper">
<?php include ("header.php"); ?>
<?php include ("menu_header.php"); ?>
<div id="templatemo_main_top"></div>
<div id="templatemo_main">
<body style="background-color:#d7d7d7;margin:auto">
<form action="php_sendmail_upload2.php" method="post" name="form1" enctype="multipart/form-data">
<table width="830" border="2" style="padding:50px;">
<tr>
</tr>
<tr>
<td>Email:</td>
<td><input name="Email" type="text" id="txtSubject"></td>
</tr>
<tr>
<td>Subject:</td>
<td><input name="txtSubject" type="text" id="txtSubject"></td>
</tr>
<tr>
<td>Message Description:</td>
<td><textarea name="txtDescription" cols="40" rows="8" id="txtDescription"></textarea></td>
</tr>
<tr>
<td>Sender Name:</td>
<td><input name="txtFormName" type="text"></td>
</tr>
<tr>
<tr>
<td>Sender Email:</td>
<td><input name="txtFormEmail" type="text"></td>
</tr>
<tr>
<td>Attach file:</td>
<td><input name="fileAttach" type="file"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Send"></td>
</tr>
</table>
</form>
<div class="cleaner"></div>
<div class="cleaner"></div>
</div> <!-- end of templatemo_main -->
<div id="templatemo_main_bottom"></div>
<?php include ("footer.php"); ?> <!-- end of templatemo_footer -->
</div>
<!-- end of wrapper -->
</body>
</html>
<?php
} ?>