- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp2.php
More file actions
Latest commit
executable file
·42 lines (33 loc) · 706 Bytes
/
Copy pathphp2.php
File metadata and controls
executable file
·42 lines (33 loc) · 706 Bytes
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
<html>
<body>
<?php
$a[0]=1;
$a[1]=10.897;
$marks["maths"]=90;
$marks["science"]=90;
$marks["social"]=80;
$marks["sanskrit"]=80;
$sum=0;
foreach($marksas$subject => $submark)
$sum=$sum+$submark;
if(get_magic_quotes_gpc())
echo"Magic quotes are enabled";
else
echo"Magic quotes are disabled";
echo"<br>";
$text=$_POST['text'];
$script="This is the input<br>
<script type='text/javascript' >
alert(\"In me script\")
</script>";
echo$text;
echo$script;
echohtmlentities($script);
// echo "The total is ".$sum;
?>
<form method="post">
Text:<input type="text" name='text'>
<input type="submit" name="submit">
</form>
</body>
</html>