2 Replies - 4544 Views - Last Post: 09 August 2012 - 04:00 AM

Why this code does not work?

Posted 09 August 2012 - 03:19 AM

Hi Everyone

I'm following on-line tutorials and keep running into problems esp when using CGI.pm
I am trying to run what seems like a simple script but like most of these tutorials
that I am following it doesn't work.

Can anybody please take a look at it and tell me where I am going wrong.

Replies To: Why this code does not work?

Re: Why this code does not work?

Posted 09 August 2012 - 03:34 AM

Generally it would help if you describe in what way your code doesn't work. Just saying "doesn't work", doesn't really tell us anything.

That said, you should not manually print the HTTP header when using CGI.pm - that's what the header and redirect functions are for. Calling the redirect function won't work if you've already printed a header manually (or for that matter using the header function).