Jump to content

Most Efficient Way To Pass Parameters


tpdietz
 Share

Recommended Posts

Hi,I have two php pages. The first one is a form that takes several input values from a user. Once that form is submitted, the data gets stored into a database. The second page displays a table listing all of the forms' data that have been submitted from that first page. I need for the user to be able to select one of the rows from that second page which will then redirect them back to the first page, populating the data from that row.My question is, since there is quite a bit of data to be refreshed, is it better to pass all of the parameters back to the first page (could be a dozen or more) or just pass the two primary keys and have that first page just query for the results and use that to populate the input values?Thanks,Tim

Link to comment
Share on other sites

I'd say the latter. The link to the first page should contain only the ID of the content to be populated. There is no reason to send all data in.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...