nashsaint Posted June 5, 2009 Share Posted June 5, 2009 Hi, is there a way not to refresh a page after submitting a form? I've seen some js that can do this job but am wondering if there's a simple code to achieve this. thanks in advance. Link to comment https://forums.phpfreaks.com/topic/161041-how-not-to-refresh-page-after-submit/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 5, 2009 Share Posted June 5, 2009 Submitting a form sends a http request to the server for the target of the action="..." URL. The only way to not cause the current page to refresh is to submit to a URL that is an iframe on the current page. You can also use AJAX to "manually" send the form data without actually submitting the form. Link to comment https://forums.phpfreaks.com/topic/161041-how-not-to-refresh-page-after-submit/#findComment-849873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.