title: Logic for inserting into a database after Paypal payment (PHP. MySQL)
body: <p>I'm building an application with Codeigniter where the users can access a form to create their profile, after they fill the form they have to pay through Paypal and if the payment was successful the profile is created on the database. </p>
  
  <p>How do I store the data submitted on the form so I can use it after the Paypal payment?</p>
  
  <p>Should I insert it in the database when the user submit the form in the first place?
  Should I use sessions?</p>
  
  <p>The form includes multiple file inputs</p>