<html>
<body>
<a href="samepage.php"><img src="button.png"></a>
<div>
//page content, database queries, calculations etc
</div>
</body>
</html>
I don’t want to load DIV content at page open, only i want load this DIV when i press button,
is there any technique to do that?
You should seperate the code in the div into antorher file. Than using jQuery ajax functions will do it.
jQuery Ajax
jQuery load
If this is not the case, u can use a flag in the link like (mypage.php?process=true).For example if page is loaded like this:
mypage.php
your php code should skip till the end with this code.
And your link in the button should be like this: