slitaz-dev-tools view taztpd/taztpd.cgi @ rev 310

makegraphs: tune cpuinfo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 15 08:08:28 2021 +0000 (2021-01-15)
parents
children
line source
1 #!/bin/sh
2 #
3 # CGI/Shell script example for TazTPD Web Server
4 #
5 echo "Content-Type: text/html"
6 echo ""
8 var=${QUERY_STRING#var=}
10 # xHTML 5 output
11 cat << EOT
12 <!DOCTYPE html>
13 <html xmlns="http://www.w3.org/1999/xhtml">
14 <head>
15 <title>TazTPD CGI</title>
16 <style type="text/css">
17 body { padding: 40px 16%; }
18 h1 { color: #4d4d4d; border-bottom: 1px dotted #ddd; }
19 </style>
20 <head>
21 <body>
22 <h1>TazTPD and CGI</h1>
23 <p>
24 Entered form value: $var
25 </p>
26 <form method="get" action="taztpd.cgi">
27 <input type="text" name="var" size="32">
28 </form>
29 <p>
30 `date '+%Y-%m-%d %H:%M'`
31 </p>
32 </body>
33 </html>
34 EOT