-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpost_test.php
More file actions
75 lines (71 loc) · 1.38 KB
/
post_test.php
File metadata and controls
75 lines (71 loc) · 1.38 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!doctype html>
<html>
<head>
<title>Posted data test</title>
<meta charset="utf-8" />
<style>
body {
padding:10px 30px;
color: #333333;
font-family: Arial, Helvetica, sans-serif;
font-size: 75%;
}
table {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
}
th {
vertical-align: top;
padding: 5px;
}
th, td {
border: 1px solid black;
}
pre {
font-family: monospace,monospace;
font-size: 1em;
margin: 5px;
background-color: #f7f7f7;
border: 1px solid #d7d7d7;
overflow: auto;
padding: .25em .25em 1em .25em;
}
.prewrap {
white-space: pre-wrap;
}
</style>
<title>Sample — TinyMCE Output</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="sample.css" />
</head>
<body>
<table>
<colgroup><col width="120" /></colgroup>
<thead>
<tr>
<th>Field Name</th>
<th>Value</th>
</tr>
</thead>
<?php
foreach ( $_POST as $field => $value ) {
?>
<tr>
<th><?php echo htmlspecialchars($field); ?></th>
<td><pre><?php echo htmlspecialchars($value)?></pre></td>
</tr>
<?php
}
?>
</table>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>
jQuery(function($) {
$('pre').on('click', function() {
$(this).toggleClass('prewrap');
});
});
</script>
</body>
</html>