stupid FORM problem

Andrew Csillag drew.csillag at starmedia.net
Mon Jan 24 10:47:23 EST 2000


sp00fD wrote:
> 
> I'm having a problem with a cgi program.  Basically some html calls a
> <FORM METHOD="POST" ACTION="/my.cgi?action=view&table=thistable">
> ...
> <SELECT NAME="thread">
> <OPTION VALUE="1">foo
> ....
> 
> None of my params {action : "view", table : "thistable", thread : 3(or
> whatever)} go through.  I've tried this using GET as the METHOD as
> well, but no luck.  Here's the thing though, if I type the path in as
> the url, it works (i.e http://myhost/my.cgi?
> action=view&table=thistable&thread=3)
> 
> What am I doing wrong.
> 

I don't think you can have the ?action... part as the ACTION url to
FORM.
Try putting these in your <FORM> block instead:
<INPUT TYPE=hidden NAME=action value="view">
<INPUT TYPE=hidden NAME=table value="thistable">


-- 
print(lambda(q,p):'pmt:$%0.2f'%(q*p/(p-1)))((lambda(a,r,n),t:(a*r/
t,pow(1+r/t,n*12)))(map(input,('amt:','%rate:','years:')),1200.0))




More information about the Python-list mailing list