Results 1 to 2 of 2

Thread: Messenger Wink/Emotioncon Gallery

  1. #1
    Join Date
    Feb 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Messenger Wink/Emotioncon Gallery

    Looking for code to display Messenger Winks/Emotioncons on a web page. My goal is to build a Messenger Wink/Emotioncon gallery to display my collection. Do not need full code, just "nudge in the right direction".

    Thanks

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    What do you mean? Do you mean replace : ) with ?
    PHP Code:
    <?php
    $smilies 
    = array(':)'';)' ,':o' ,'8)');
    $images = array('Happy''Wink''Suprised''Cool');
    if(isset(
    $_POST['submit'])){
      
    $_POST['text'] = str_replace($smilies$images$_POST['text']);
      echo 
    $_POST['text'];
    }
    ?>
    <form action="" method="post"><input type="text" name="text" /><input type="submit" name="submit" /></form>
    Jeremy | jfein.net

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
  •