60.19.13.2. Jednoduchý formulář

Nyní když víme jak funguje předávání parametrů do skritpu, můžeme se pokusit o jednoduchý formulář.

Příklad 60.5. Jednoduchý formulář

#!/bin/bash
# $Id: simple-form,v 1.1.1.1 2009-01-24 15:42:51 radek Exp $
echo "Content-type: text/html"
echo


cat <<EOF
<html>
  <head>
    <title>Jednoduch� formul��</title>
    <meta http-equiv="Content-Type"
          content="text/html; charset=iso-8859-2"/>
  </head>
  <body>
    <form>
      Zadej jm�no:
      <input type="text" name="jmeno"/>
      <br/>
      <input type="submit" name="tlacitko" value="Odeslat"/>
    </form>
  </body>
</html>
EOF