Jump to content

Echo error


emediastudios

Recommended Posts

Well i wanted to echo the errors in format.

Thats all.

wanted to echo the errors in the body of a differnt file,

I could use

echo "<br>$file_name The File(s) could not be uploaded!<br>The file must be under 1 meg and be of a valid extension type, jpeg, jpg, png or gif!<br />

or

print "<meta http-equiv=\"refresh\" content=\"0;URL=property_added_unsuccessfully.php\">";

what i wanted to do is echo the error in property_added_unsuccessfully.php

so that they knew which file was the problem, not just open a error page with static text.

Does this make sense?? ???

Link to comment
https://forums.phpfreaks.com/topic/77105-echo-error/#findComment-390489
Share on other sites

there's a number of ways you can do this:

 

- you can send a error message in the string to your current page.

 

- you can send a error message in the string to your error page.

 

- you could send a variable in a string to your error page with a pre-determined error echoing out based on your variable

 

- you can have a error function in your current page

 

- and so on ..................

Link to comment
https://forums.phpfreaks.com/topic/77105-echo-error/#findComment-390490
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.