Skip to content
Advertisement

Tag: jquery

Data not insert and update through ajax and jQuery in admin page?

I made custom plugin and done crud operation, display all data in admin page, used ajax and jquery. Data successfully deleted but not inserted or updated. Data successfully pass through ajax but not inserted. Also What I saw if input block is empty and I put some data and updated it. It got first row data. Error- https://prnt.sc/wnzqjr ajax for

How to pass an image file thru jquery $.ajax() correctly?

I am trying to upload an image and passing the userID and file through ajax to the PHP file profileSettings.inc.php. However it succeed in running the php file, but the data was not passed through. When I ran print_r($_POST);, in the php file it returned an empty array. Form: profileSettings.inc.php: ?> Anyone knows what I am doing wrong in passing

Advertisement