in reply to Re^5: Need to use data passed from FORM from HTML page to CGI upload script.
in thread Need to use data passed from FORM from HTML page to CGI upload script.

Yes.Absolutely. It is working successfully in original HTML code.
<!DOCTYPE html> <html> <head> <title>MAINTENANCE PAGE</title> </head> <body> <form name = f1 action="https://10.XXX.XXX.X:16311/ibm/console/webtop/ +cgi-bin/download_csv.cgi" method = "POST"> <p style="margin-left:10em;font-size:40px">MAINTENANCE PAGE</p> <br> <p style="margin-left:16.5em;font-size:20px">Circle:<select name="Circ +le" > <option value="Gabon">Gabon</option> <option value="Tanzania">Tanzania</option> </select> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs +p;&nbsp;&nbsp; Technology : <select name="Techno" > <option value="Core">Core</option> <option value="RAN">RAN</option> </select> </p> <br> <input type="submit" style="margin-left:30.5em" value="Download" onc +lick="this.form.target='_blank';return true;"> &nbsp;&nbsp;&nbsp; <input type="submit" value="Upload" onclick="f1.action='https://10.XXX +.XXX.X:16311/ibm/console/webtop/cgi-bin/Maintenance_Framework.cgi'; +return true;"> </form> </body> </html>
  • Comment on Re^6: Need to use data passed from FORM from HTML page to CGI upload script.
  • Download Code

Replies are listed 'Best First'.
Re^7: Need to use data passed from FORM from HTML page to CGI upload script.
by coolsaurabh (Acolyte) on Jul 26, 2019 at 15:40 UTC

    HTML is not supporting enctype="multipart/form-data" in form statement . when I removed this string from FORM statement,at least error didn't popup when I clicked Upload or Download button.However file didn't got uploaded or downloaded.