-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventassist.php
executable file
·51 lines (50 loc) · 1.78 KB
/
eventassist.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
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
<?php if (!($_COOKIE["user"]=='normal' OR $_COOKIE["user"]=='sntsecy'))die('<h3><center><br><br>You got here because you tried to access this page directly.<br><br>Please make the entry again !<br><br> <a href="index.php">Click</a> here to
go to the login panel.</center></h3>' . mysql_error()); ?>
<html>
<head><link rel="stylesheet" type="text/css" href="background.css"><title>Add Secretary Records</title><script type="text/javascript">function cleardata(){<?php
//session_destroy();
setcookie("user", "", time()-3600);
?>
window.location="index.php";}</script>
</head>
<body><?php //echo $_COOKIE['user'];
setcookie("user", $_COOKIE['user'], time()+3600); ?><div align="right">
<button type="submit" onclick="cleardata()" formtarget="index.php">Logout</button>    </div>
<FORM METHOD="POST" ACTION="secretarysubmission.php">
<TABLE BORDER="0.1">
<TR>
<TD>Roll Number(Prefix with 'Y' or 'y' IF needed)</TD>
<TD>
<INPUT TYPE="TEXT" NAME="rollno" SIZE="25">
</TD>
</TR>
<TR>
<TD>Name</TD>
<TD><INPUT TYPE="TEXT" NAME="name" SIZE="25"></TD>
</TR>
<TR>
<TD>CLub Name</TD>
<TD><INPUT TYPE="TEXT" NAME="club_name" SIZE="25"></TD>
</TR>
<TR>
<TD>Numeric Index of this person</TD>
<TD><INPUT TYPE="TEXT" NAME="index" SIZE="25"></TD>
</TR>
<TR>
<TD>Room Number</TD>
<TD><INPUT TYPE="TEXT" NAME="room_no" SIZE="25"></TD>
</TR>
<TR>
<TD>Hall</TD>
<TD><INPUT TYPE="TEXT" NAME="hall" SIZE="25"></TD>
</TR>
<TR>
<TD>E-mail</TD>
<TD><INPUT TYPE="TEXT" NAME="email" SIZE="25"></TD>
</TR>
</TABLE>
<P><INPUT TYPE="SUBMIT" VALUE="Submit" NAME="B1"></P>
</FORM>
<a href="javascript:javascript:history.go(-1)">Click here to go back to previous page</a>
</body>
</html>