# TODOS
# 1) Add more componects, such as textarea, password, radio/checkbox, etc
# 2) Redirect
# 3) Using django.newforms
from django.http import HttpResponse
def form_demo(request):
text = u'''
Hi, %s!
你今年 %s 岁了!
'''
output = u'''
'''
if request.POST.has_key('name')and request.POST.has_key('age'):
name = request.POST.get('name','')
age = request.POST.get('age','')
output += text
fillin =(name, age, name, age) else:
name =''
age =''
fillin =(name, age)