Hello, like everyone else on here, I'm looking for some help, but I'm thinking this should be fairly simple for people who know the language.
I've got an HTML form full of drop downs and input boxes that a user fills out, then they hit Submit and using the POST method it goes to an upload.php page I wrote, that uploads all of their values to a database, and presents them with the unique Web ID it generated.
Now, I need them to be able to go back to the original page, and enter in the Web ID in they were just given, and have all of the forms controls load the data from the database.
I'm wondering, what's the best method of going about this? I don't mind researching, I just don't know what to research. My thoughts on it are having a "refresh" button, so once they select "display" rather then create on the main page, they hit refresh, which submits to the upload.php using POST, and has a check, if display was selected on the previous page, then reload the previous page, but some how set all of the controls with the proper values from the database based on the Web ID. There has got to be a better way then putting in logic for each control on the web form "If display was selected, set the value too... otherwise, list possible values for selection"
Can anyone give me some pointers, please?
I've got an HTML form full of drop downs and input boxes that a user fills out, then they hit Submit and using the POST method it goes to an upload.php page I wrote, that uploads all of their values to a database, and presents them with the unique Web ID it generated.
Now, I need them to be able to go back to the original page, and enter in the Web ID in they were just given, and have all of the forms controls load the data from the database.
I'm wondering, what's the best method of going about this? I don't mind researching, I just don't know what to research. My thoughts on it are having a "refresh" button, so once they select "display" rather then create on the main page, they hit refresh, which submits to the upload.php using POST, and has a check, if display was selected on the previous page, then reload the previous page, but some how set all of the controls with the proper values from the database based on the Web ID. There has got to be a better way then putting in logic for each control on the web form "If display was selected, set the value too... otherwise, list possible values for selection"
Can anyone give me some pointers, please?
Comment