You can either have the cgi build the form and send it as part of the response with the fields pre-filled. Otherwise you will want to change your href below to look like this:
<a href="../HUMhtml/ODICTform3.htm?parm1=value&parm2=value"> Assuming parm1 and parm2 are hidden fields on your form, this will include the values in the form. "The power of accurate observation is often mistaken for cynicism by those who have not got it." -- George Bernard Shaw ________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Mary Kay Tubello <[email protected]> Sent: Wednesday, January 31, 2018 11:31 To: [email protected] Subject: CGIs and HTML FORMs Hello, I have a situation as follows; 1. I have a URL going to a CGI and passing parms, i.e. https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsyst.humana.com%2FHUMcgitest%2FRICK3.sh%3FODICT%2CPOO4567891123456&data=02%7C01%7Cjohn.wilcox%40MT.GOV%7C90803b8461144f61fffa08d568d8e4d9%7C07a94c98f30f4abbbd7ed63f8720dc02%7C0%7C0%7C636530203135660000&sdata=51eU18NrW69EfUzeiWfN2XC5wGxvwjpaosNljlw%2BogQ%3D&reserved=0 2. The CGI reads a job from a PDS into a STEM and fills in the two parms that were sent on the url. And Submits the job. 3. Now, I have to make a change to allow a user to enter his employee id. In this case, we start with a CGI and go to a form. I added this to the original CGI to create the form when the user clicks 'click here'. say 'content-type: text/html' say say '<html> <head> ' say '<title>Acknowledger Authentication </title>' say '<META HTTP-EQUIV="pragma" CONTENT="no-cache"> </head>' say '<body bgcolor="white" text="black" link="black" alink="green">' say '<p> <a href="../HUMhtml/ODICTform3.htm">Click here</a></p>' say '</body> </html>' My ODICTform3.htm sends out a form with a space for user to enter employee id. Now, here's the part I'm having trouble with. 1. I want the CGI to pass the parms in the URL above to the HTML . HOW? 2. Then, I want all three parms (two from URL and one from FORM to be added to that job STEM that I created above. HOW? 3. Submit the job from the HTML or do I send it back to the CGI to submit or write a second CGI to submit the job. HOW? Thanks, Mary Kay Large Systems Engineering IT Infrastructure Humana 123 E. Main St. 40202 (CT6) 502-476-2772 [email protected]<mailto:[email protected]> ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
