Hi:<br>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:<br>
<br>
from primeNumbers import primeNumbers<br>
<br>
try:<br>
  lang = form.getfirst('lang', 'en')<br>
  browser = form.getfirst('browser', 'all')<br>
  site = form.getfirst('site', 'bridge')<br>
  num = form.getfirst('num','')<br>
except:<br>
  pass<br>
<br>
ourFile = string.split(__file__, "/")<br>
p = ourFile[len(ourFile) - 1]<br>
p = p[: - 9]<br>
site = ourFile[4][:-10]<br>
if site != '':<br>
  site = site[:-1]<br>
<br>
print "Content-Type: text/html"<br>
print<br>
print """<br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd</a>"><br>


<head xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>"><br>
</head><br>
"""<br>
if num != '':<br>
  num = round(float(num))<br>
  roots = primeNumbers(num)<br>
  print roots<br>
if num == '':<br>
  print """<br>
<form action="<a href="http://13gems.com/test-Calculators_frame.py" target="_blank">http://13gems.com/test-Calculators_frame.py</a>" method="post"><br>
<input type="text" name="num" size="20" maxlength="20" value="Enter number here..." onfocus="this.value=''" /><br>
<input type="image" src="<a href="http://13gems.com/images/search.jpg" target="_blank">http://13gems.com/images/search.jpg</a>" name="search" id="search" /><br>
</form><br>
"""<br>
print '</body></html>\n'