-
Notifications
You must be signed in to change notification settings - Fork 0
/
addevent.php.bak
executable file
·44 lines (42 loc) · 1.46 KB
/
addevent.php.bak
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
<?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 new event</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="addevent1.php">
<TABLE BORDER="0.1">
<TR>
<TD>Event Name</TD>
<TD>
<INPUT TYPE="TEXT" NAME="name" SIZE="25">
</TD>
</TR>
<TR>
<TD>Event_Type</TD>
<TD><INPUT TYPE="TEXT" NAME="type" SIZE="25"></TD>
</TR>
<TR>
<TD>Event_Date</TD>
<TD><INPUT TYPE="TEXT" NAME="date" SIZE="25"></TD>
</TR>
<TR>
<TD>Event_ID</TD>
<TD><INPUT TYPE="TEXT" NAME="event_id" SIZE="25"></TD>
</TR>
<TR>
<TD>Primary organizing club</TD>
<TD><INPUT TYPE="TEXT" NAME="org_club" SIZE="25"></TD>
</TR>
</TABLE>
<P><INPUT TYPE="SUBMIT" VALUE="Submit" NAME="B1"></P>
</FORM>
</body>
</html>