CGIを使用してKSHスクリプトに変数を提供する方法は?

CGIを使用してKSHスクリプトに変数を提供する方法は?

index.shはcgi-binディレクトリにあります:

#!/usr/bin/ksh

echo 'Content-type: text/html

<html><body>
<form action=FOO.KSH method=POST>
<input type=submit value=fgrep style=width:42px>
<input type=text name=name type=text autofocus size=60>
</input></form>
<br>'

浦江市

#!/usr/bin/ksh

printf "Content-type: text/html\n\n"; 

echo $1
echo $QUERY_STRING
echo $(</dev/stdin)

尋ねる:index.shの形式で "a"文字列を送信すると、FOO.KSHが空のファイルを提供するのはなぜですか?

ベストアンサー1

method=POST>

する必要があります

method=GET>

おすすめ記事