www.webdeveloper.com
Results 1 to 4 of 4

Thread: need help with an if statement please.

  1. #1
    Join Date
    Oct 2006
    Posts
    9

    need help with an if statement please.

    I have some code that will turn a normal text string starting with http: to a clickable link, but it screws it up if the code is an image code or some other reference. Can someone help me so if the text is displaying an image it won't parse it.

    Here is the code
    PHP Code:
    $text ereg_replace("(((ftp://|http://|https://){1})[a-zA-Z0-9@:%_.~#-\?&]+[a-zA-Z0-9@:%_~#\?&/])""<A HREF=\"\\1\" TARGET=\"_blank\">\\1</A>"$text); 

  2. #2
    Join Date
    Oct 2006
    Posts
    9
    maybe the easiest way would be not href=http:// img src=http://

  3. #3
    Join Date
    Oct 2006
    Posts
    9
    anyone?

  4. #4
    Join Date
    Oct 2006
    Posts
    9
    I would truly kiss someone if they could offer help. this is keeping my site from going live.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles