Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube Google+
Results 1 to 2 of 2
  1. #1
    Junior Member Ramakrishnakcr's Avatar
    Join Date
    Jun 2013
    Posts
    0
    Downloads
    0
    Uploads
    0

    how to add alt attribute in img tag in php so that it displays text

    typed in it when image not available? reply soon

  2. #2
    Junior Member steakyfask's Avatar
    Join Date
    Jun 2013
    Posts
    2
    Downloads
    0
    Uploads
    0
    are you talking about echoing HTML from php? if so then exactly the same way as HTML,

    <?php

    echo "
    <img src="path/pic.jpg" alt="image" />
    "

    ?>


Similar Threads

  1. Replies: 0
    Last Post: 09-30-2009, 12:06 PM
  2. Replies: 1
    Last Post: 03-18-2009, 11:43 PM
  3. Replies: 3
    Last Post: 03-16-2009, 11:16 AM
  4. Replies: 0
    Last Post: 01-08-2009, 07:08 PM
  5. Replies: 0
    Last Post: 07-07-2008, 02:43 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 05:04 PM.
Powered by vBulletin® Version 4.2.5
Copyright © 2024 vBulletin Solutions Inc. All rights reserved.