Problem with data-url


#1
<?php $link = "http://www.Test.com"; ?>

I want to make a tweet button. Like …url-data="<?php echo $link ?>". The twitter $_GET url is the same as if I would to set url-data=“http://www.Test.com”. However, when the url-data is “<?php echo $link ?>”, it does not show the link(http://www.Test.com) in the area where the twitter user is going to tweet about…


#2

Fixed it ish… You can put the <?php echo $link?> code in the data-text attribute


#3

Is there a way to do this using javascript?


#4