PHP AJAX send JSON data to server

Posted by khumlo Freddie in AJAX, PHP on 25. Jul, 2011 | 0 Comments

This is a simple example is how you can send a JSON data through AJAX with a small tips of how to convert a PHP array to JSON data, stringify JSON data in javascript and converting JSON data back to PHP array. Converting PHP array into JSON data (say edit.php file). $value = array(’id’==>1, ‘name’==>’khumlo’); [...]

Single submit button for multiple HTML forms using PHP

Posted by khumlo Freddie in AJAX, PHP on 22. Jul, 2011 | 0 Comments

I want to share my experience with all of you of how to submit multiple forms with single submit button using PHP. It’s a great day for me today, finally I have executed what I term it as a creepy grapevine task. Well The problem goes these way:- There are multiple forms under single form [...]

Difference between POST and GET methods

Posted by khumlo Freddie in AJAX, HTML, PHP on 13. Jun, 2011 | 0 Comments

POST and GET are methods used to submit form from client to server. Both accomplices the same goals but they operate differently. Difference between POST and GET methods are listed below. POST vs GET are: When submitting form using POST, the form elements are sent to the server in encrypted form while in case of [...]

Extract jQuery Ajax with array as response

Extract jQuery Ajax with array as response

Posted by khumlo Freddie in AJAX, jQuery, PHP on 08. Dec, 2010 | 0 Comments

For those who have had a problem handling jquery Ajax which requires large amount of data as response. Few months back I had faced the same issue for which I got suggestion to use bunch of special characters in between values and return as a big string and then using split() to get final result [...]