Reply to Re: send the error code with the url

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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important