input: Write a python function to create a Flask application that renders a form and saves user data.
  assert form() == '<html>...</html>'  # Replace with actual form HTML
  assert save_data() == '<html>...</html>'  # Replace with actual success HTML
output: from flask import Flask, request, render_template_string
  
  app = Flask(__name__)
  
  @app.route('/')
  def form():
      form_html = '''
      <html>
      <body>
          <form action="/submit" method="post">
              Name: <input type="text" name="name"><br>
              Email: <input type="text" name="email"><br>
              <input type="submit" value="Submit">
          </form>
      </body>
      </html>
      '''
      return render_template_string(form_html)
  
  @app.route('/submit', methods=['POST'])
  def save_data():
      name = request.form['name']
      email = request.form['email']
      # Save the data as needed, e.g., to a database
      success_html = '''
      <html>
      <body>
          <h1>Data Saved Successfully</h1>
          <p>Name: {}</p>
          <p>Email: {}</p>
      </body>
      </html>
      '''.format(name, email)
      return render_template_string(success_html)
  
  if __name__ == '__main__':
      app.run(debug=True)