php help

Discussion in 'PHP' started by kumar84, Aug 29, 2007.

  1. #1
    hi friends

    my code is this

    $img = '<img src="http://calfsoft.com/facebookapps/pethostz/pet1.jpg">';
    $img1 = '<img src="http://calfsoft.com/facebookapps/pethostz/pet.jpg">';
    ?>
    <?=$img; ?> <a href="add.php?img=<?=rawurlencode($img); ?>"> ADD TO PROFILE </a>
    <?=$img1; ?> <a href="add.php?img=<?=rawurlencode($img1); ?>"> ADD TO PROFILE </a>

    if i click this addtoprofile it is going to script.php and it passing this url to script.php and this is get into
    single variable $link and iam passing in profile_setFBML ,So that the output is display the picture

    add.php
    <?
    include("appinclude.php");
    $link = $_GET['img'] ;
    if($link != '')
    {
    $link = rawurldecode($link);
    $display.=$facebook->api_client->profile_getFBML($user).$link;
    $facebook->api_client->profile_setFBML($display,$user);
    }

    Now what i need is, i want to create a link remove from profile, when i click remove from the profile it should pass this link to other page(remove.php)
    and it should remove the particular link and it once again pass into profile_setFBML method
    So that the output it should remove the particular picture and want to display it

    i dont know how to remove the particular link and display the remaining picture ,can anybody help me for writing coding in remove.php


    Thanks in advance
     
    kumar84, Aug 29, 2007 IP