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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:39:13+00:00 2026-06-09T00:39:13+00:00

I am trying to get a image to display in a hidden area, this

  • 0

I am trying to get a image to display in a hidden area, this is a section of code I have copied from another page that someone else made. So it all works, you click the button and the hidden area appears and I can get data from the table I made to display and change the css around that, no problem.

$tmp .= $html->tag('span',$html->tag('h3',

The complete code is below, but the line above is where I am working. This Is the start of the hidden area. What I would like to do is have the img image tag inside the span tag. However all my code does, at this time, is to print/echo the location I have put in the database but not display the image. I am not sure if this is something I have done wrong with where I have put the file, webroot/img/events/tempimg.jpg, what is does print is ‘img/events/tempimg.jpg’. From that I take it my image is in the right place just that I have opened the tags in the wrong way. Or would it be better to close the span tag 1st this open the img tag, if so how would I make sure it only appears in the hidden area and not on the main page.

        $tmp = $html->tag('strong', $NewDate. " - " . $EventTitle.'<br />');  
                    $tmp .= $html->tag('div', substr($EventLoc, 0, 10).'... <br />', array('class' => 'EventInfo'));

                    $tmp .= $html->tag('span',$html->tag('h3',
                        __d('EventsHeader', $e['Team']['name'] . ' Events ', true), array('class' => 'EventInfos'))
                        .$html->tag('img', $EventImage, array('class' => 'EventHide hide'))
                        .nl2br($EventInfo . ' testing more......'), array('class' => 'EventHide hide')
                    );

Many Thanks for any help

Glenn Curtis.

  • 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-09T00:39:15+00:00Added an answer on June 9, 2026 at 12:39 am

    Just in case this helps anyone else, this is now I have now built the tag up, with not using the HTML helper

                    $tmp .= "<div class=\"EventHide hide\">
                                    <h3 class=\"EventInfos\">" .$e['Team']['name'] . " Events - ". $EventTitle ." - ". $EventLoc ."</h3>
                                    <div class=\"\"><img src=\"$EventImage\" width=\"250\" height=\"200\"/></div>
                                    <span class=\"EventDisplayDate\">When : $DisplayDate</span>
                                    <span class=\"EventDisplayLoc\">Where : $EventLoc</span>
                                    <span class=\"EventDisplayDes\">Description<br/>$EventInfo</span>
                                </div>";
    

    Glenn.

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

Sidebar

Related Questions

I'm trying to get CIImage from ImageView that display on the screen. UIImage *image
I am trying to get an image to display on a page using a
I'm trying to get image from gallery and than display it in UIImageView. My
I am trying to get a QR Code image to display in an email.
Im trying to get an image from a wcf rest service like so: [ServiceContract]
I'm trying to get an image sitting at a URL that is protected by
I'm trying to get an image off the internet from an URL in java.
I'm trying to get an image from URL and save it to the isolated
I am trying to get an image from URL in Android and set it
I am trying to get an image from an HTTP server using Perl. I

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.