input: 
  from flask import Flask, render_template, request, redirect
  import sqlite3
  
  def create_flask_app(table_name: str) -> Flask:
      """
      Creates a Flask application that handles form submission and stores the submitted data in a SQLite database.
      The form includes three fields: Name, Email, and Phone. Upon submission, the data is inserted into the specified table.
      
      >>> create_flask_app('data')
      <Flask 'app'>
      """
      app = Flask(__name__)
  
      @app.route('/')
      def home():
          return render_template('index.html')
  
      @app.route('/submit', methods=['POST'])
      def submit():
          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(f"INSERT INTO {table_name} (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
          conn.commit()
  
          return redirect('/')
  
      return app
  
output:     @app.route('/view')
      def view():
          conn = sqlite3.connect('data.db')
          cur = conn.cursor()
          cur.execute(f"SELECT * FROM {table_name}")
          rows = cur.fetchall()
          conn.close()
          return render_template('view.html', rows=rows)