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
Post a Comment