#!/usr/bin/env python
# -*- coding: ISO-8859-1 -*-

from mod_python import apache, psp

def index(req):
    """Takes request from browser. Runs webpage."""
    
    req.content_type = 'text/html; charset = utf-8'
    tmpl=psp.PSP(req, filename='2-1.html')
    tmpl.run()

def data(req, Name=' ', Email=' '):
    """Takes request from browser and two variables. 
    Writes them to client
    """
    
    req.content_type = 'text/plain; charset = utf-8'
    convert_name = str(Name)
    req.write("Namn: " + Name + "\n" + "Email: " + Email)
