api - How to share a dynamic link in PHP? -
api - How to share a dynamic link in PHP? -
i have generated link in php takes user's id , places @ end of referral link track refers using referral system. illustration of link via php:
http://example.com/index.php?page=act/reg&inv=$arrusr[0]
i'm trying create share button facebook, twitter, email, , add together shortener
using bitly api
- maintain running same problem... not update user id, , instead literally send url is.
i'm doing stupid. help appreciated.
how link shared:
<a class='btn btn-tw' href='https://twitter.com/home?status=http://example.com/test/index.php?page=act/reg&inv=$arrusr[0]'><i class='fa fa-2x fa-twitter twcolor'></i></a>
the link works is. if want create simple link, give me illustration (depending on user of course):
http://example.com/index.php?page=act/reg&inv=43
how come, when utilize facebook, twitter, or bitly api share link refuses populate user id on end of url?
any help appreciated!!!
edit (full php code isn't working)
<?php echo " <div class='row'><!-- start of row text --> <div class='col-md-4'> <center><img src='image/logo.png' alt='logo' class='img-circle img-responsive logo-size' style='max-height:275px;'></center> <div id='datecountdown' class='img-responsive' data-date='2014-11-01 04:05:00'></div><br /> </div> <div class='col-md-8 welcome-bar'> <img src='image/thankyoubanner.png' alt='thank signing up' class='img-responsive'> <h2>invite friends and<br />win more prizes!</h2> <p align='center'>share unique link via email, facebook or twitter , win more prizes each friend signs up.</p> <center><form role='form'> <input class='form-control' id='focusedinput' type='text' value='http://example.com/index.php?page=act/reg&inv=$arrusr[0]' style='max-width:375px;text-align:center;'> </form></center> <a class='btn btn-fb' href=http://www.facebook.com/sharer/sharer.php?u=http://example.com/index.php?page=act/reg&inv=$arrusr[0]'><i class='fa fa-2x fa-facebook fbcolor'></i></a> <a class='btn btn-em' data-toggle='modal' data-target='#subscribe'><i class='fa fa-2x fa-envelope-o emcolor'></i></a> <a class='btn btn-tw' href='https://twitter.com/home?status=http://example.com/index.php?page=act/reg&inv=$arrusr[0]'><i class='fa fa-2x fa-twitter twcolor'></i></a> </div> </div><!-- end of row countdown --> "; ?>
this php little box correctly generating re-create code (using bootstrap framework), , share links not operating. (ignore email link that's modal correctly working)
you need display id using echo, you're displaying static html, nil else, modify
<a class='btn btn-tw' href='https://twitter.com/home?status=http://example.com/test/index.php?page=act/reg&inv=<?php echo $arrusr[0]; ?>'><i class='fa fa-2x fa-twitter twcolor'></i></a>
php api dynamic twitter hyperlink
Comments
Post a Comment