input: from flask import Flask, render_template, request, redirect
  import sqlite3
  
  app = Flask(__name__)
  
  @app.route('/')
  def home():
   return render_template('index.html')
  
  @app.route('/submit', methods=['POST'])
  def submit():
   """
   This function handles form submission and stores the form data in a SQLite database.
   
   >>> # Assume the following form data is sent via POST request
   >>> # Form data: {'name': 'John Doe', 'email': 'john@example.com', 'phone': '1234567890'}
   >>> submit()
   >>> # Database should now contain a row with the submitted form data
   """
   name = request.form.get('name')
   email = request.form.get('email')
   phone = request.form.get('phone')
   
   conn = sqlite3.connect('data.db')
   cur = conn.cursor()
   
   cur.execute("INSERT INTO data (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
   conn.commit()
   
   return redirect('/')
  	
  if __name__ == '__main__':
   app.run(debug=True)
output:     conn.close()