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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.