in reply to Re: Get vs. POST in CGI.pm
in thread Get vs. POST in CGI.pm
Hi, thanks for the response.
It's fair enough to say "Don't use GET for uploads." But the thing is, the error-checking doesn't work if I use POST.
If I enter "blablabla" into the form and use a POST, the output is "No Die". If I change POST to GET (as shown in the posted code) I get "We Die". I want to avoid processing non-existant files, but can only do so if I use a GET, which doesn't make sense to me.
In other words: why does CGI.pm permit upload(garbage) to not be undef with a POST, while it does enforce it with a GET?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Get vs. POST in CGI.pm
by LazerRed (Pilgrim) on Sep 22, 2003 at 23:52 UTC | |
|
Re: Re: Re: Get vs. POST in CGI.pm
by iburrell (Chaplain) on Sep 23, 2003 at 17:11 UTC | |
by Anonymous Monk on Sep 24, 2003 at 01:50 UTC |