PHP Extract variable

Discussion in 'PHP' started by ThoRaK, Mar 10, 2012.

  1. #1
    Hello, i'm trying to combine a pice of php code with some html to display my users status on yahoo messenger.

    When they fill my form for classified ads, they have to enter their yahoo messenger id.

    So i have something like this to extract that id.

    <?php _e('YM:', 'appthemes') ?> <?php echo get_post_meta( $post->ID, 'cp_id_messenger', true ); ?>
    PHP:
    <a href="ymsgr:sendIM?here-you-put-the-ym-id"><img border=0 src="http://opi.yahoo.com/online?u=here-you-put-the-ym-id&m=g&t=1"></a>
    HTML:
    But i don't know how to combine those, in order to display on my single page (i'm using wordpress) that yahoo messenger id extracted with php.

    Can u guys give me a little help ?:confused:
     
    ThoRaK, Mar 10, 2012 IP
  2. ThoRaK

    ThoRaK Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I made it :)) thanks
     
    ThoRaK, Mar 10, 2012 IP