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

Recommended Answers

All 6 Replies

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.

Member Avatar for diafol

I agree ajax is the way to go. I suggest using jquery for handling ajax.

thanks jkon and ardav!

thanks P0lT10n..

Member Avatar for P0lT10n

;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.