You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by Apache Wiki <wi...@apache.org> on 2006/11/28 05:19:42 UTC

[Mod_python Wiki] Trivial Update of "GuessingGame" by ErikThompson

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Mod_python Wiki" for change notification.

The following page has been changed by ErikThompson:
http://wiki.apache.org/mod_python/GuessingGame

------------------------------------------------------------------------------
  {{{#!python
  <%
+ """
+ session.psp
+ 
+ A PSP Guessing Game using session variables, a form variable, 
+ and an if statment containing an html block.
+ """
+ 
  import random
  s = Session.Session(req) # store the session object into the 's' variable
  buttonText = "Submit"
@@ -45, +52 @@

  }}}
  
  == Notes ==
+ This page should be called session.psp or if changed be sure to modify the action="session.psp" from the html form accordingly.
  
  This program uses two session variables 'answer' and 'guesses':[[BR]]
  answer: stores a random number between 1 and 100[[BR]]