title: Redirect page Python to Home page using HTML
body: <p>I am new to python.</p>
  
  <p>I have a login page using html and a create account page using python.
  When I press submit on html form in login page i redirect to create account page. I need to redirect to home page from create account page.</p>
  
  <p>I don`t know how to do that.</p>
  
  <p>I have seen many questions like this here but it doesn`t work for me.</p>
  
  <p>Thank you</p>
  
  <p>This is my create account page:</p>
  
  <pre><code>#!/Python27/python
  # -*- coding: UTF-8 -*-
  
  
  # Import modules for CGI handling
  import MySQLdb
  import cgi, cgitb
  
  # Open database connection
  db = MySQLdb.connect("localhost", "root", "", "moviedb" )
  
  # prepare a cursor object using cursor() method
  cursor = db.cursor()
  
  # Create instance of FieldStorage 
  form = cgi.FieldStorage() 
  
  # Get data from fields
  email = form.getvalue('email')
  nume  = form.getvalue('nume')
  password = form.getvalue('password')
  
  # execute SQL query using execute() method.
  try:
      cursor.execute("""INSERT INTO user(name,
           email, password)
           VALUES (%s,%s,%s)""",(nume,email,password))
      # Commit your changes in the database
      db.commit()
  except:
      db.rollback()
  
  # disconnect from server
  db.close()
  
  print "Content-Type: text/plain;charset=utf-8"
  print
  </code></pre>