html - How to pass data to php using <a> without updating the whole page -
how pass data php using tag such part of webpage update , url contains data passed? example:
"<a href='./sample.php?data=".$row['some_data']."'>.$row['some_data']."</a>"
yes i'm talking ajax. want url example www.site.com/sample.php?data=2 part of webpage change not whole. how do this? thing can think of add onclick event on tag , process ajax request there think whole page still update because of href.
Comments
Post a Comment