Home > Archive > PHP Language > March 2006 > inn_array prblem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Damian Burrin 2006-03-20, 6:56 pm |
| Any ideas why this will work in ie but is totally ignored by mozilla
browsers
$validImages = array("image/gif", "image/jpg", "image/png",
"image/pjpeg","image/jpeg");
if (in_array($_FILES['userfile']['type'],$v
alidImages)){
}
Despate for help on this.
thanks guys
Damian
--
Damian Burrin
UKRA 1159 Level 2 RSO
EARS 1115
http://www.ukrocketry.com
http://www.larf-rocketry.co.uk
LARF - Putting the amateur back in rocketry!!
| |
| Johannes Wienke 2006-03-20, 6:56 pm |
| Am 20.03.2006 18:42 schrieb Damian Burrin:
> Any ideas why this will work in ie but is totally ignored by mozilla
> browsers
> $validImages = array("image/gif", "image/jpg", "image/png",
> "image/pjpeg","image/jpeg");
>
> if (in_array($_FILES['userfile']['type'],$v
alidImages)){
>
> }
Because the browser is not forced to post these information.
| |
| Damian Burrin 2006-03-20, 6:56 pm |
| > if (in_array($_FILES['userfile']['type'],$v
alidImages)){
I've sorted this now.
The iimage info was in the relevant array identically in both browsers,
however i was redirecting from the result of the if and was using something
along the lines of
index.php?action=error&isbn this was fine for ie but mozilla browsers
seem to add an extra ; by default so going back to
index.php?action=error&isbn worked on both browser types and still validate
any how.
Thanks
Damian
--
Damian Burrin
UKRA 1159 Level 2 RSO
EARS 1115
http://www.ukrocketry.com
http://www.larf-rocketry.co.uk
LARF - Putting the amateur back in rocketry!!
"Damian Burrin" <burrin@nospamntlworld.com> wrote in message
news:2QBTf.2807$H%3.131@newsfe5-gui.ntli.net...
> Any ideas why this will work in ie but is totally ignored by mozilla
> browsers
> $validImages = array("image/gif", "image/jpg", "image/png",
> "image/pjpeg","image/jpeg");
>
> if (in_array($_FILES['userfile']['type'],$v
alidImages)){
>
> }
>
> Despate for help on this.
>
> thanks guys
> Damian
>
> --
> Damian Burrin
> UKRA 1159 Level 2 RSO
> EARS 1115
> http://www.ukrocketry.com
> http://www.larf-rocketry.co.uk
>
> LARF - Putting the amateur back in rocketry!!
>
>
|
|
|
|
|