how can i refresh php page by click button (onclick funtion) in another php file
i have 2 file : a.php & b.php
so how to refresh page in b.php by click button in a.php
hope anyone can help me. Thanks
how can i refresh php page by click button (onclick funtion) in another php file
i have 2 file : a.php & b.php
so how to refresh page in b.php by click button in a.php
hope anyone can help me. Thanks
The simplest way is to have an hidden IFRAME and the second PHP file to trigger a JavaScript function that changes the innerHTML of a div in the first page. But the real solution is just AJAX.
I agree ajax is the way to go. I suggest using jquery for handling ajax.
thanks jkon and ardav!
Yes, jQuery is one of the best way to do this, because of simple.... look here for more help ! http://www.w3schools.com/jquery/jquery_ajax.asp
thanks P0lT10n..
;)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.