jquery - How to use PHP in Javascript -


this jquery i'm using.

i need use returned data , store in db usin php.

'oncomplete'  : function(event, id, fileobj, response, data) {        alert('your video has been uploaded. thanks.'); 

now inside this, want use retuned fileobj , store it. how do that?

you place ajax call inside of function submits data php page.

'oncomplete'  : function(event, id, fileobj, response, data) {    alert('your video has been uploaded. thanks.');      $.ajax({         type: 'post',         url: 'your_php_page.php',         data: fileobj,         success: function(msg) {            //do         },         error: function(msg) {            //handle error         }     }); } 

then you'd create php page submit posted data database.

read more $.ajax() call here.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -