-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputmain.php
64 lines (49 loc) · 913 Bytes
/
inputmain.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
<!DOCTYPE html>
<html>
<link rel="stylesheet" type="text/css" href="style2.css">
<?php
session_start();
$value=$_GET['value'];
if($_SERVER['REQUEST_METHOD']=='POST'){
$values=$_POST;
$_SESSION['values']=$values;
header('location:input.php');
}
?>
<head>
<title>
</title>
</head>
<body>
<div class="nn">
<form name="f1" method="post">
<h1>Enter Your Data</h1>
<table>
<th>Fixed Value</th>
<th>X-axis</th>
<th>Y-axis</th>
<th>No of Msg</th>
<th>Battery %</th>
<?php
for($i=0; $i<$value; $i++)
{
?>
<tr>
<?php
for($j=0;$j<5;$j++){
?>
<td><input type="number" name="<?php echo $i;echo $j;?>" id="sum"></td>
<?php
}
?>
</tr>
<?php
}
?>
</table>
<!input type="submit" class="ss">
<button id="button">Submit</button>
</form>
</div>
</body>
</html>