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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.