Thats perfect. Thanks you very much Andrew. I used $Error_Number =
$_GET['err']; as the other one didn't work. Thanks again.
--
Martin Cunningham.
Macro-Tek
http://www.macro-tek.cjb.net/
"Andrew G" <fungus@DONOTSPAM.hunterlink.net.au> wrote in message
news:2d4Pa.8$sI.8406@nasal.pacific.net.au...
>
> "Martin Cunningham" <muttly@iol.ie> wrote in message
> news:beihn0$4of$1@kermit.esat.net...
> > Ok. I've done that but it still desn't do what I want. The url would be
> > http://www.somewhere.com/forum/error.php?err=404 I want to get the
err=404
> > part of that url in to my file. I believe that to do that you must
decode
> > the url but all i get as a value then is "Array" and that definaetly
isn't
> > 404.
> >
>
> > $Error_Number = urldecode($err); //HERES THE PROBLEM
>
> You do not need to use the urldecode function. You should already have
> access to that variable in your script and it will be called $err. If that
> does not work then you probably have the "register_globals" variable set
to
> "off". That is a good thing for security. (look for register_globals in
the
> php.ini file and read more here: http://www.php.net/register_globals )
>
> So, if you have register_globals set to "off" the above line needs to be:
>
> $Error_Number = $_GET['err'];
>
> Otherwise:
>
> $Error_Number = $err;
>
>
>
>
>
>
>
>
>