Re: send the error code with the url

See all posts Reply

Re: send the error code with the url new!
by Fredrik, 10 years, 8 months ago
i want to send the error code with the url, so i can display the error on a different page. How do i do that?

like this: www.domain.se/upload_page.php?errorcode=123

Then display it on the page upload_page.php like:
Theres a error: "if $errorcode='123' == ''show this'"
And take that info from the translation file.

if i do like this:
$WriteError = "". $handle->error ."";
and use it like this: header("Location: "upload_page.php/?msg=".$WriteError."");

i get the error message in the url. Not the best solution.


so, the best would be to get the "$translation['uploaded_missing']" in the url...
but how do i get that from error? ". $handle->error ."";Reply
Re: send the error code with the url new!
by colin, 10 years, 8 months ago
I am afraid you will have to code your own error array in order to do that.Reply