-
Notifications
You must be signed in to change notification settings - Fork 0
/
s1.php
executable file
·85 lines (69 loc) · 2.27 KB
/
s1.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
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
84
85
<?php
session_start();
if(!session_is_registered(myusername)){
header("location:login.php");
}
include "config.php";
include "function.php";
$username=$_GET['user'];
echo "
<html>
<body>
Login Successful
<form name=form1' method='post' action='logout.php'>
<td><input type='submit' name='Submit' value='Logout'></td>
</form>
</body>
</html>
<html>
<body>
<script type='text/javascript' src='check.js'></script>
<form action='insert.php' method='post'>
<table border='2'>
<tr>
<th>Title <th> <input type='text' name='title' size='20' /></th>
<tr><th>Abstract <th> <input type='text' name='abstract' /></th>";
?>
<?php
$con = mysql_connect('$host','$username','$password');
if (!$con)
{
# die('Could not connect: ' . mysql_error());
}
mysql_select_db('$db_name', $con);
echo '<tr>';
form_dropdown_field('dropdown','','Conference','Conferences','Name','','State','',"onchange='changedist(this.value)'")
?>
<script type='text/javascript'>setstate()</script><tr><td><div id='dist_name'>Choose topic</div></td><td><div id='dist'></div>
</table>
<br>
<table border='1'>
<tr>
<th>List of Authors:
</tr>
<b>Note :</b> Your name is automatically consider as author of this paper.<br> For Additional authors fill following form.
</table>
<?
for($i=1; $i<=$number_of_authors; $i++)
{
echo "<br><table border=1>";
echo "<th>Author ".$i."</th>";
#echo "<input type='hidden' name='Semester' value='".$_POST['Semester']."' /></td>";
#echo "<td>Max Marks</td><td><input type='text' name='Max_Marks' /></td>";
echo "<tr></tr><td>First name</td><td><input type='text' name='first_name".$i."'/></td>";
echo "<td>Last name</td><td><input type='text' name='last_name".$i."' /></td></tr>";
echo "<tr></tr><td>Give affiliation</td><td><input type='text' name='affiliation".$i."'/></td>";
form_dropdown_field('dropdown','','Country_'.$i.'','Country','name','','','','');
echo "</tr>";
#echo <tr>Your Country</td><td><input type='text' name='country".$i."' /></td>";
echo "<tr><td> Email</td><td><input type='text' name='email".$i."' /></td></tr>";
#$i +=1;
echo "</table><br>";
}
echo "<input type='hidden' name='paper_submit' value='paper_submit' />";
echo "<input type='hidden' name='username' value='$username' />";
?>
<input type="submit" />
</form>
</body>
</html>