Skip to content

Forms and Input

mona edited this page Oct 29, 2016 · 1 revision

HTML form:

<form>
    <input name="q">
    <input type="submit">
</form>

String Substitution

<b> some bold text </b>
a = "some bold text"
"<b> %s text %s </b> a" % (a,b)
"text %(NAME)s text" % {"NAME":value}

Input values

cool is a default value To preserving user's info which is good.. Change write form ```

## HTML Escaping
derp"> &lt less then &gt greater then &amp= $amp;amp; --> &=&amp " &quot & &amp ``` use escape_html function to solve the problem in python. So in reality

Redirection

cannot share success link.
cannot reload the page without annoying message.

Clone this wiki locally