Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- a=$(echo $QUERY_STRING | cut -d"&" -f1 | cut -d"=" -f2)
- b=$(echo $QUERY_STRING | cut -d"&" -f2 | cut -d"=" -f2)
- echo "Content-Type: text/html"
- echo ""
- echo "
- <html>
- <head>
- <title>Document</title>
- </head>
- <body>
- <h1>Hello world!</h1>
- <h2>$QUERY_STRING</h2>
- <form action='/script' method='GET'>
- <input value='$a' name=a type=text>
- +
- <input value='$b' name=b type=text>
- <button>=</button>
- $[ a + b ]
- </form>
- </body>
- </html>
- "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement