in reply to Re^9: %ENV is returning a blank
in thread %ENV is returning a blank

Thank you to everyone who has responded to my query.

I have finally figured out why I was not getting output back from my online form. It took me 3 days to realise where the issue lay. Other's might benefit from this, I hope.

I designed my XML form to work with Javascript, and did not consider Perl at that time. As a result, I did not use a "name" attribute in the XML file, and only had the "id" attribute for all the INPUT elements. Perl does not read "id", but reads "name". Of course this resulted in an empty Query String using GET and zero Content Length using POST.

As soon as I added the "name" attribute to my XML, it worked.

If I am wrong and there is some way that Perl CGI reads "id", I stand corrected and that will enhance my knowledge further.

I would also like to say, that I have started using CGI.pm which certainly makes life easier

Irvy

Replies are listed 'Best First'.
Re^11: %ENV is returning a blank
by Anonymous Monk on Aug 20, 2011 at 03:06 UTC

    Perl does not read "id", but reads "name". Of course this resulted in an empty Query String using GET and zero Content Length using POST.

    No, perl doesn't read either, the browser doesn't read ids because forms use names, so the browser only reads names