sending data to a simple script
(note that data from the post method are now legible)
| direct construction of URL | submit, method='get' | submit, method='post' |
#!/bin/sh echo "Content-type: text/html"; echo echo method was $REQUEST_METHOD "<br>" echo content length is $CONTENT_LENGTH "<br>" echo STDIN contains:"<blockquote>" cat <&0 echo "</blockquote>" echo the number of input parameters is $#"<br>" echo the first 3 parameters are:"<br>" echo "<blockquote>"$1 $2 and $3 echo "</blockquote>" echo "<br>\$QUERY_STRING is:" echo "<blockquote>"$QUERY_STRING echo "</blockquote>" |
||