Passing data from one form to another form

To pass php data from a form and then catch that data into another form one way to accomplish this task is to intermingle your php code into your HTML to dynamically capture variable values. This particular method is useful in a scenario where the user updates something via a post (it could be a text file or database) and then the user is returned to the page where the form is located to find various fields populated by information contained either in the database in the a text configuration file.

This actually is a lot easier than you might think. In this example, I will point the action="" attribute of the HTML Form to the same page that the form is sitting on. When doing this, it works best to just simply put the php code at the top of the page and then write the HTML below it.

Example:Try it - Download Script

Author: D.Shaun Morgan