Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6701477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:56:19+00:00 2026-05-26T06:56:19+00:00

image.html – <img src=showImage.php?id=44/> <– this is the code I’m trying to make work.

  • 0

image.html –
<img src="showImage.php?id=44"/> <– this is the code I’m trying to make work.

showImage.php –
<?php echo ("showImage.php called"); ?> <– this is the php file I’m trying to call.

The problem is.. img tag is not calling ‘showImage.php’ to print out “showImage.php called.”. Instead, it tries to display showImage.php file as an image 🙁 … and doesn’t display what it’s supposed to. Am I doing something wrong here?

*Note: id=44 will be used for something else… not a big concern here.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:56:20+00:00Added an answer on May 26, 2026 at 6:56 am

    If you actually visit that page in the browser, I’m sure it will print out showImage.php called in the browser. However, you’re specifying that the file should be an image in your HTML and the browser is trying to treat it as an image. When it gets a text/html file instead, the browser merely shows that the image was invalid, it does not print the text instead. Your showImage.php will need to actually output an image in order for the browser to render it inside your document. Otherwise, you’ll have to visit the page manually to see any text it’s outputting for debugging, etc.

    All in all, it is calling your file, the browser is just ignoring the result. It will never show text instead of an image, unless you specify an alt attribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if an image html is <img src=img1 class=homeimage/> how using jquery would you wrap
For the following image html: <img src=/some.png alt=something /> In CSS, you can target
tring to flow text around an image: HTML <div> <span id=photo><img src=photo.png</span> <span id=text>Lorem
The layout I'm trying to achieve is shown in this image: The HTML below
I have my current code: #content img[src=/img/test.gif] { background-image:url(dark-img.png) !important; } From my understanding
I'm trying to add an image to a generated html word document that is
I'm trying to get a transparent png frame image to hover over an img
In this case i am uploading an image using HTML and JavaScript. I need
I'm trying to port the old HTML.Image helper, that I'm sure everyone has used
There are several options on how to include SVG image in HTML: img tag,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.