robert.chuaa Posted January 3, 2008 Share Posted January 3, 2008 is it possible to submit a form that use POST methode without have to reload the page again and again? thanks Link to comment https://forums.phpfreaks.com/topic/84245-how-to-submit-form-without-refresh-form/ Share on other sites More sharing options...
p2grace Posted January 3, 2008 Share Posted January 3, 2008 If you want to use post you'll have to refresh the page each time so it "post" the data to the server. Link to comment https://forums.phpfreaks.com/topic/84245-how-to-submit-form-without-refresh-form/#findComment-429030 Share on other sites More sharing options...
priti Posted January 3, 2008 Share Posted January 3, 2008 try to use ajax to post the data. Link to comment https://forums.phpfreaks.com/topic/84245-how-to-submit-form-without-refresh-form/#findComment-429034 Share on other sites More sharing options...
p2grace Posted January 3, 2008 Share Posted January 3, 2008 Ajax won't actually post the data, but rather it acts like it posts the data by grabbing all the values from a given form using ajax calls. Link to comment https://forums.phpfreaks.com/topic/84245-how-to-submit-form-without-refresh-form/#findComment-429035 Share on other sites More sharing options...
cooldude832 Posted January 3, 2008 Share Posted January 3, 2008 Ajax won't actually post the data, but rather it acts like it posts the data by grabbing all the values from a given form using ajax calls. ajax doesn't do that at all it sends headers that are POST data from the server use a series of functions designed in later browsers. You can use ajax identical to as if it was sent via POST and php doesn't know the difference. It doesn't grab you tell it what to send. Link to comment https://forums.phpfreaks.com/topic/84245-how-to-submit-form-without-refresh-form/#findComment-429038 Share on other sites More sharing options...
jitesh Posted January 3, 2008 Share Posted January 3, 2008 Throught AJAX you can post data. Just review the example http://www.phpbuilder.com/columns/jon_campbell20070730.php3 Link to comment https://forums.phpfreaks.com/topic/84245-how-to-submit-form-without-refresh-form/#findComment-429059 Share on other sites More sharing options...
priti Posted January 3, 2008 Share Posted January 3, 2008 Ajax won't actually post the data, but rather it acts like it posts the data by grabbing all the values from a given form using ajax calls. Well if it doesn't POST the data then why we are able to see $_POST in PHP.In PHP $_PHP get populated when a form is posted .If you upload file thru ajax your won't get it in $_FILE at server side. Link to comment https://forums.phpfreaks.com/topic/84245-how-to-submit-form-without-refresh-form/#findComment-429070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.