-
Notifications
You must be signed in to change notification settings - Fork 0
/
session.php
43 lines (27 loc) · 792 Bytes
/
session.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
<?php
session_start();
$Name = $_POST['kidname'];
$_SESSION["dname"] = $Name;
echo '<div style="padding: 1em; border: 5px solid grey; width: 50px"><img style="width: 30px; height: 30px" src="settings.png">'.$_SESSION["dname"].'</div>';
?>
<html>
<script>
function show(){
var f = document.getElementById('fl');
if(f.value == ""){
alert("wrong");
}
else{
alert("good job");
}
}
function play() {
var audio = document.getElementById("audio");
audio.play();
}
</script>
<input type="image" src="settings.png" onclick="play()">
<audio id="audio" src="rec.m4a"></audio>
<input id="fl" type="file">
<button onclick="show()">submit</button>
</html>