Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #7
0
def exit(form):
    return cgipage(interp("""Thank you. You submitted:<br/>
    $text
    """, dict((k, form.getfirst(k)) for k in form)))
Beispiel #8
0
def exit(form):
    return cgipage(
        interp("""Thank you. You submitted:<br/>
    $text
    """, dict((k, form.getfirst(k)) for k in form)))