in reply to Need to use data passed from FORM from HTML page to CGI upload script.

I am struggling to fetch Circle and Technology value in Upload script.

One blocker at least is that print_page() doesn't refer to either of those params in any way, so it's no wonder that you can't retrieve them in the subsequent handler.

I'm glad to see that nothing calls xyz() because that looks really horrible.

Best of luck with this. I recommend a good read of the Basic Debugging Checklist which will stand you in good stead.

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

    Thanks for the update. But when I am using xyz() in the print_page(),upload function fails even if I retrieve the parameters. Code I pasted is generic one which doesn't include all the permutation & combination what I tried. If you have any suggestion where to use xyz() and still upload option works,I am open to try that. Thanks.

      Is your question really just "How can a handler with CGI.pm retrieve both file and non-file params in one run"? Because that's an easy one to demonstrate and means we can ignore the rest of what you have there.