Mailing List Archive

CGI post method
Can somebody tell me what's wrong with the following form tag:

<FORM METHOD="POST" ACTION="http://127.0.0.1/cgi-bin/fibo.py">
<INPUT NAME="value" SIZE="10">
<INPUT TYPE="SUBMIT" VALUE="Enter"></FORM>

My script isn't getting the text as input.

Jon Cosby
CGI post method [ In reply to ]
Jon Cosby writes:
>Can somebody tell me what's wrong with the following form tag:
><FORM METHOD="POST" ACTION="http://127.0.0.1/cgi-bin/fibo.py">
><INPUT NAME="value" SIZE="10">
><INPUT TYPE="SUBMIT" VALUE="Enter"></FORM>
>
>My script isn't getting the text as input.

It looks reasonable. Try changing the method to "GET" and see
if you wind up with /cgi-bin/fibo.py?value=10. What error are you
seeing?

--
A.M. Kuchling http://starship.python.net/crew/amk/
"Mortal man?"
"Yes?"
"Beware of the dog."
-- Charon warns Orpheus, in SANDMAN: "The Song of Orpheus"
CGI post method [ In reply to ]
Tried that. Shows the correct argument, but the script reverts to the
default value.

Jon Cosby

Andrew M. Kuchling wrote in message
<14117.47102.615236.362798@amarok.cnri.reston.va.us>...
> It looks reasonable. Try changing the method to "GET" and see
>if you wind up with /cgi-bin/fibo.py?value=10. What error are you
>seeing?
>
>--
>A.M. Kuchling http://starship.python.net/crew/amk/
> "Mortal man?"
> "Yes?"
> "Beware of the dog."
> -- Charon warns Orpheus, in SANDMAN: "The Song of Orpheus"
>
>