-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfile.php
More file actions
62 lines (47 loc) · 1.06 KB
/
Copy pathfile.php
File metadata and controls
62 lines (47 loc) · 1.06 KB
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
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var header = $('body');
var backgrounds = new Array(
'url(modi.jpg)'
, 'url(obama.jpg)'
, 'url(ca.jpg)'
, 'url(fo.jpg)'
);
var current = 0;
function nextBackground() {
current++;
current = current % backgrounds.length;
header.css('background-image', backgrounds[current]);
}
setInterval(nextBackground, 2000);
header.css('background-image', backgrounds[0]);
});
function move_ahead() {
window.open("ultra.html","_self");
}
</script>
<title>
confirm
</title>
</head>
<body>
<h1>YOUR FINAL CHOICES</h1>
<?php
$handler = fopen("keywords.txt", "w");
if(isset($_GET['choice'])){
$checked = $_GET['choice'];
for($i=0; $i< count($checked); $i++){
$choice = $checked[$i]."\n";
echo $choice. "<br>";
fwrite($handler, $choice ,strlen($choice));
}
}
fclose($handler);
?>
<input type="button" name="next" value="CONTINUE AHEAD" onclick="move_ahead()">
</body>
</html>