Jump to content

how to submit form without refresh form ?


robert.chuaa

Recommended Posts

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.

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.