I have written a program that uses an HTML form to collect information with radio buttons, drop down lists, and text boxes, then submits it to a cgi script that stores it to a file and / or displays the contents of the file. It would be nice to be able to chooses one of those records (I can handle that part) and put that information BACK into the HTML form so it could be edited if needed. I just need some code samples of how to actually get perl to call that HTML form and pass data BACK to it. For example, the form has a radio button for department - available selections are sales, IT, management. In the file where the info is stored, it would be stored as the word sales (for example). Lets assume I open the file and input the word sales into the perl variable "department" - how do I call the form with the perl cgi and have it select whichever radio button info is stored in the "department" variable? Same idea for text boxes and drop down lists. A couple of brief samples would be appreciated. If I have to have perl completely re-create the form instead of calling it, then a couple of brief examples on how to create the form with the proper selections (example - when it creates the form it selects the sales radio button because that is what was in the "department" variable) would be appreciated.
Thanks!
Thanks!