Hi;<br>I have the following in a *.py page for the Web:<br><br>from primeNumbers import primeNumbers<br><br>try:<br>  num = form.getfirst('num')<br>except:<br>  num = ''<br>  msg = "Oops"<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">http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd</a>"><br>
<head xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"><br></head><br>"""<br>if num != '':<br>  try:<br>    num = round(float(num))<br>    roots = primeNumbers(num)<br>
    print roots<br>  except:<br>    msg += "We're sorry! You entered something that is not a number. Please try again.<br />\n"<br>    num = ''<br>if num == '':<br>  print msg<br>  print "Num:", num<br>
  print """<br><form action="<a href="http://13gems.com/test-Calculators_frame.py">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">http://13gems.com/images/search.jpg</a>" name="search" id="search" /><br></form><br>"""<br>
print '</body></html>\n'<br><br>Now, "Oops" never gets printed, nor does the variable num (although a blank space appears to print). I am calling the very page to which the form sends its values. Assuming the imported module works, why donīt I get anything printed? <br>
TIA,<br>Victor<br>