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

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -