Hi everyone.
I've got a cobol program that creates a html page from within the COBOL code. Part of the definition of the HTML code goes like this:
<FORM NAME=HTMLForm METHOD=POST>
So as you can see there's no actual program that this form points to even though the METHOD has been set to "POST" (as in sending data from this html page to a server side program).
However the html page does work fine, because if the cobol program is run, the html page is generated and I'm able to click on a "submit" button which then goes back into the COBOL program and carries on with the rest of it's job.
I want to add 3 radio buttons to the html page so that one of them is selected before the "submit" button is pressed.
The problem is I'm not quite sure where to start, and where I'd need to add new code into the COBOL program.
I did have a manually written html page with radio buttons (created using a little javascript) but I'm not sure how to insert this into the COBOL program and how to link the html code to the COBOL.
For example, how to make the cobol see which radio button was pressed,and then running a dos batch file is run with a specific parameter based on that outcome before carrying on with the rest of the COBOL program.
Any ideas would be more than welcome.
Thanks a lot.
I've got a cobol program that creates a html page from within the COBOL code. Part of the definition of the HTML code goes like this:
<FORM NAME=HTMLForm METHOD=POST>
So as you can see there's no actual program that this form points to even though the METHOD has been set to "POST" (as in sending data from this html page to a server side program).
However the html page does work fine, because if the cobol program is run, the html page is generated and I'm able to click on a "submit" button which then goes back into the COBOL program and carries on with the rest of it's job.
I want to add 3 radio buttons to the html page so that one of them is selected before the "submit" button is pressed.
The problem is I'm not quite sure where to start, and where I'd need to add new code into the COBOL program.
I did have a manually written html page with radio buttons (created using a little javascript) but I'm not sure how to insert this into the COBOL program and how to link the html code to the COBOL.
For example, how to make the cobol see which radio button was pressed,and then running a dos batch file is run with a specific parameter based on that outcome before carrying on with the rest of the COBOL program.
Any ideas would be more than welcome.
Thanks a lot.