Re: Re: A general UL script
| From: | Børge Holen | Date: | Sat, 28 Oct 2006 21:56:02 +0000 |
| Subject: | Re: Re: A general UL script | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243803@lists.php.net to get a copy of this message | ||
This could also be omitted with the help of NOT use
echo irritating reason
exit
Witch would leave the script running to BREAK on switch out of it all =D
YES. Not an elegant solution... but beats whatever I'm doing right now.
On Saturday 28 October 2006 23:46, Børge Holen wrote:
> Ok. got that thanks.
> But that leaves me a bit off to how to tell the script to leave it alone.
> Is it possible to check it
>
> or maby even better. Posible to not add an empty field in the submit.
> The multifile submit I actually intended this script for, always send the
> first field empty so later on I slice the array to cut out the first'n
> empty field.
>
> Witch ALSO would be very helpful, since I right this minute seems to
> believe/found out that Safari actually seems to send the field in the
> opposite order of Firefox??? Maby there is something else, but the script
> stops when I check the array for actual images.
>
> On Saturday 28 October 2006 23:33, M.Sokolewicz wrote:
> > Børge Holen wrote:
> > > When I use a normal single file upload form; both of these statements
> > > will continue wether my form is empty or not, why?
> > >
> > > if(!empty($_FILES)){
> > > do som checking if its a jpg.
> > > if not exit;
> > >
> > > if(isset($_FILES)){
> >
> > because it IS set and NOT empty.
> > $_FILES['file_upload_field'] is set, it's got no data, but it IS set.
> > $_FILES is set because $_FILES['file_upload_field'] exists.
> > Submitting a blank form sends all "variables" though without actual
> > (non-default) content.
> >
> > - tul
>
> --
> ---
> Børge
> Kennel Arivene
> http://www.arivene.net
> ---
--
---
Børge
Kennel Arivene
http://www.arivene.net
---