I have a php script which generates a list of modules to install or uninstall based on reading the directory names. So the page presents the user with something like this:
As you can see, these are radio button choices and the "value" given to each row of buttons is the module name. I am not sure how to assign the $_POST variables on the next page since the "value"s were generated automatically. I think it is bad form to run the function which populated the module names again. There should be an easier way to pass the info to the next page..in an array or something. I'm just not sure what the best way would be. How do you pass a $_POST variable where the "value" is unknown before the script is run? OR How do you pass an array to the next page without using $_POST? I'm sure this is simple...I'm pretty green at web programming, but I've done quite a lot of system programming. Thanks for the help.
Code:
Text Radio Radio Radio
Button Button Button
--------------------------------------
Module1 Install Uninstall Ignore
Module2 Install Uninstall Ignore
Module3 Install Uninstall Ignore
Module4 Install Uninstall Ignore
As you can see, these are radio button choices and the "value" given to each row of buttons is the module name. I am not sure how to assign the $_POST variables on the next page since the "value"s were generated automatically. I think it is bad form to run the function which populated the module names again. There should be an easier way to pass the info to the next page..in an array or something. I'm just not sure what the best way would be. How do you pass a $_POST variable where the "value" is unknown before the script is run? OR How do you pass an array to the next page without using $_POST? I'm sure this is simple...I'm pretty green at web programming, but I've done quite a lot of system programming. Thanks for the help.