Jump to content

Update Page with submitted data


shades

Recommended Posts

Hi Guys,

 

I have a PHP Page which has forms which are added dynamically by the user. The data is stored in db accordingly.

 

I want to know is there a way to get the page structure back with all the fields ? so user can see and update if necessary...

I am able to get all the inserted data by querying my db....  but I am stuck with getting back the actual page with the exact structure (meaning along with all the dynamically added forms) and populate data in respective input boxes :/

 

Any help or a workaround will be greatly appreciated.

 

Thanks

Link to comment
Share on other sites

Supply your html elements with value="$phpvar" attributes.  Then when your script reads in the post array, save the input values into those phpvars.  When you re-display this html form the values will be there.  Be sure to re-init them when you don't want the values sent back.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.