I'm new to PHP and I've this code I'am not sure why it redirect me to http://www.facebook....php?s=100&p[url]=
instead I want http://www.facebook....php?s=100&p[url]=test
.
<?php
$url = 'test' ;
echo "
<a target='_blank' href='http://www.facebook.com/sharer/sharer.php?s=100&p[url]=' " . $url . " '&p[images][0]=https://scontent-vie1-1.xx.fbcdn.net/hphotos-xta1/v/t1.0-9/11102691_483697748448554_6954591283482418788_n.png?oh=78cfe0fb891a30cf56d78df08e65e70f&oe=55F12850;p[title]=Desgin Football online and win&p[summary]=Vote and Win '>
<img style='width: 50px;
height: 50px; margin-left: 35px;
margin-right: auto;' src='2.png'></a>
" ;
?>
Any ideas?
Don´t copy old code, the sharer.php only takes the URL as parameter since many years:
For example: