Seeing an web page instead of seeing an image file

This is getting drawn out…
Why do you think you are getting a “form resubmission error” when you haven’t uploaded an image?

Are you wishing to go directly to NoInfoAvailable.php if you haven’t uploaded an image?
IF SO use

header("location: NoInfoAvailable.php");
exit;

Or are you wishing to make an image/link pointing to NoInfoAvailable.php?
Then that’s what we are doing here

$file_location = '<a href="http://www....com/NoInfoAvailable.php"><img src="upload/NoInfoAvailable.png" alt="No Image"></a>';

which you would then echo where needed, e.g.

echo $file_location;

Thanks for your reply.
Where should

 echo $file_location;

go?

I assumed it was being used somewhere already to show link/thumbnail.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.