implemantation of facebook like button

il15

New Member
i am developing a site with html and php ...what i have done so far for like button on my page is as follow(concept is same only name is different on facebook it is like and on my site it is Points Up )\[code\]<form method="post"><input type="hidden" value="http://stackoverflow.com/questions/12769057/<?php echo $posts[postid]; ?>" name="postid"><input type="submit" name="pointsup" value="http://stackoverflow.com/questions/12769057/Points Up" /></form>\[/code\]the above will create the button with name Points Up.\[code\]if(isset($_POST['pointsup'])){ in this if block i have written all queries to update database and user interface and all}\[/code\]what i want is instead of that button there should be some link witch will run my sql code.i also tried JavaScript but it doesn't help anything Thanks in advance for your answers!
 
Back
Top