-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.php
24 lines (23 loc) · 910 Bytes
/
compose.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require_once('lib/include.php');
// Detect is the user is logged in, otherwise direct to login page
if (!isset($_SESSION['user']))
{
header("Location: login.php");
exit();
}
?>
<div id="emailstatus"></div><div style="clear:both"></div>
<div id="compose">
<form method="post" id="composeform" action="javascript: return(false);">
<input type="text" id="toemail" name="toemail" value="To" onchange="determineEncStatus();" onclick="if(this.value == 'To') this.value = '';" />
<input type="text" name="subject" id="subject" value="Subject" onclick="if(this.value == 'Subject') this.value = '';"/>
<br />
<textarea name="message" id="message" rows="7" cols="25" tabindex=""></textarea>
<br />
<button onClick="sendMessage()">Send</button>
</form>
<div id="send_complete" style="display:none; padding: 10px;">
Message sent!
</div>
</div>