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 8972381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:12:21+00:00 2026-06-15T18:12:21+00:00

I have a minor problem, i just want a simple image preview with a

  • 0

I have a minor problem, i just want a simple image preview with a go back button or something similar, I made

<div id="image1">
   <a href="../assets/image_large1.jpg"><img src="../assets/image_1.jpg"  width="160" height="107" alt="Example 1" /> 
</div>

but I don’t know how to put a button inside

how could I do it?

  • 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-06-15T18:12:22+00:00Added an answer on June 15, 2026 at 6:12 pm

    In the most simple solution to your problem, I would do special show_image.php page, for example:

    <?php
    
    $directory = 'assets/';
    $filename = $_GET['image'];
    
    if(empty($filename) || is_file( $directory . $filename ))
    {
        echo 'No such image!';
    }
    else
    {
        echo '<img src="' . $directory . $filename . '" />';
    }
    echo '<br />';
    echo '<a href="<?php echo $_SERVER['HTTP_REFERER']; ?>">Go back</a>';
    
    exit;
    

    And link for the image will be: http://mysite.com/show_image.php?image=image_1.jpg
    Of course this code should be made more secure and this thing could be done other ways.

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

Sidebar

Related Questions

I have found a minor problem when i install my application on real android
I have made a minor change to an Excel macro, and although it worked
I am working on my minor project. I have to create an image editor
Another Javascript , probobly for you minor problem , but i just can not
very simple problem, but i want to see how experts look at it. This
I am having a slight apache problem. It's probably something so minor that I
I have a minor problem where my (new) computer tends to completely freeze up.
I was wondering if anyone could help me with this minor problem. I want
I'm writing a very simple text editor and have run into a somewhat minor
I want to show a button under a ListView . Problem is, if the

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.