Re: Getting a Form To Work

2009-07-19 Thread MRAB
Victor Subervi wrote: When the form comes up the first time, there is the default value for num. When I fill in a number in the form and press send, even though the form sends to itself (same page name), I would think it would read the number sent. Here again is the code: from primeNumbers im

Re: Getting a Form To Work

2009-07-19 Thread MRAB
Victor Subervi wrote: Hi; I have the following in a *.py page for the Web: from primeNumbers import primeNumbers try: num = form.getfirst('num') except: num = '' msg = "Oops" print "Content-Type: text/html" print print """ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd";> http://w

Getting a Form To Work

2009-07-19 Thread Victor Subervi
Hi; I have the following in a *.py page for the Web: from primeNumbers import primeNumbers try: num = form.getfirst('num') except: num = '' msg = "Oops" print "Content-Type: text/html" print print """ http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd";> http://www.w3.org/1999/xhtml";> "