Example #1
0
def exit(form):
    return cgipage(interp("""Thank you. You submitted:<br/>
    check1 $check1<br/>
    check2 $check2<br/>
    check3 $check3<br/>
    choice $choice<br/>
    """, form))
Example #2
0
def exit(form):
    return cgipage(
        interp(
            """Thank you. You submitted:<br/>
    check1 $check1<br/>
    check2 $check2<br/>
    check3 $check3<br/>
    choice $choice<br/>
    """, form))
Example #3
0
def entry(form):
    textarea="""
    <textarea name='text'>
    Write something here
    </textarea>
    """
    submit="""
    <input type='submit' name='submit' value='confirm'>
    """
    return cgipage(html_form(textarea + submit))
Example #4
0
def entry(form):
    textarea = """
    <textarea name='text'>
    Write something here
    </textarea>
    """
    submit = """
    <input type='submit' name='submit' value='confirm'>
    """
    return cgipage(html_form(textarea + submit))
Example #5
0
def entry(form):
    checkbox="""
    C1<input type=checkbox name=check1><br/>
    C2<input type=checkbox name=check2><br/>
    C3<input type=checkbox name=check3><br/>
    """
    radiobuttons="""
    R1<input type=radio name=choice value=1><br/>
    R2<input type=radio name=choice value=2><br/>
    R3<input type=radio name=choice value=3><br/>
    """
    submit="""
    <input type='submit' name='submit' value='confirm'>
    """
    return cgipage(html_form(checkbox + radiobuttons + submit))
Example #6
0
def entry(form):
    checkbox = """
    C1<input type=checkbox name=check1><br/>
    C2<input type=checkbox name=check2><br/>
    C3<input type=checkbox name=check3><br/>
    """
    radiobuttons = """
    R1<input type=radio name=choice value=1><br/>
    R2<input type=radio name=choice value=2><br/>
    R3<input type=radio name=choice value=3><br/>
    """
    submit = """
    <input type='submit' name='submit' value='confirm'>
    """
    return cgipage(html_form(checkbox + radiobuttons + submit))
Example #7
0
def exit(form):
    return cgipage(interp("""Thank you. You submitted:<br/>
    $text
    """, dict((k, form.getfirst(k)) for k in form)))
Example #8
0
def exit(form):
    return cgipage(
        interp("""Thank you. You submitted:<br/>
    $text
    """, dict((k, form.getfirst(k)) for k in form)))