![phoenix](https://d1a29h5kxv3oc2.cloudfront.net/dist/img/phoenix.81914efc7207f6a059bd10f5d3fd5f89.png)
404 error in ajax call in custom wordpress page
2000
$10
- Posted:
- Proposals: 11
- Remote
- #2258018
- Archived
Web developer , SEO, PHP, wordpress, joomla Codeigniter,Bootstrap,JSP,jquery , javascript,
![Top Endorsed Top Endorsed](https://dw3i9sxi97owk.cloudfront.net/uploads/prizes/badges/ffdd1b856a16c89191f1150e4430076b.png)
Ranked in Top 10 % of Web Developers on PPH - Woocommerce, Wordpress,PSD to HTML,CSS
![Top Endorsed Top Endorsed](https://dw3i9sxi97owk.cloudfront.net/uploads/prizes/badges/ffdd1b856a16c89191f1150e4430076b.png)
Certified Laravel Developer | PHP | VueJS | Wordpress | API | Logo | Responsive Design | Shopify
![Top Seller with earnings over £100k Top Seller with earnings over £100k](https://dw3i9sxi97owk.cloudfront.net/uploads/prizes/badges/6848fd9e0514ae9277cce59806b79dc5.png)
![Top Endorsed Top Endorsed](https://dw3i9sxi97owk.cloudfront.net/uploads/prizes/badges/ffdd1b856a16c89191f1150e4430076b.png)
42996523705551726988103050625203339845401164965141810026083613035791274486
![Anthony K.](https://dw3i9sxi97owk.cloudfront.net/uploads/thumbs/ae81755969cf6e86338724a36bb684b1_70x70.gif)
![Amit G.](https://dw3i9sxi97owk.cloudfront.net/uploads/thumbs/b92b7064e31574eff121b480b6d0922b_70x70.png)
![Swapan D.](https://dw3i9sxi97owk.cloudfront.net/uploads/thumbs/56e8258a393a48c879b508e06442674c_70x70.png)
![Prajeshkumar M.](https://dw3i9sxi97owk.cloudfront.net/uploads/thumbs/6b6963627586c90394c77625e935ff10_70x70.jpg)
![Tanmay B.](https://dw3i9sxi97owk.cloudfront.net/uploads/thumbs/cc9f3816209455202edd48ad80858654_70x70.jpg)
Description
Experience Level: Entry
Hello,
I developed a custom wordpress page (customPage.php) where a ajax-javascript snippet is trying to call the page (insert_data_in_db.php) which is in charge of inserting data records into a database table.
While execution I am getting an error: "Failed to load resource: the server responded with a status of 404". How can I fix this?
I am sure it's an easy fix and should not take long.
customPage.php
$.ajax({
url:"../insert_data_in_db.php",
type:"post",
data:{wp_username:email, tool_id:accessCode},
success:function(data)
{
alert('SUCCESS');
}
});
insert_data_in_db.php
I am not sure if creating a separate php page for just inserting data in database is the right approach. I tried a different approach using Node.js with Javascript didnt work out either. You have a better approach I WOULD LOVE TO TALK ABOUT THAT.
This issue has to be fixed ASAP (within the next 48hours).
I developed a custom wordpress page (customPage.php) where a ajax-javascript snippet is trying to call the page (insert_data_in_db.php) which is in charge of inserting data records into a database table.
While execution I am getting an error: "Failed to load resource: the server responded with a status of 404". How can I fix this?
I am sure it's an easy fix and should not take long.
customPage.php
$.ajax({
url:"../insert_data_in_db.php",
type:"post",
data:{wp_username:email, tool_id:accessCode},
success:function(data)
{
alert('SUCCESS');
}
});
insert_data_in_db.php
I am not sure if creating a separate php page for just inserting data in database is the right approach. I tried a different approach using Node.js with Javascript didnt work out either. You have a better approach I WOULD LOVE TO TALK ABOUT THAT.
This issue has to be fixed ASAP (within the next 48hours).
![Tobias B.](https://dw3i9sxi97owk.cloudfront.net/uploads/thumbs/6f7edb98e67b32270a6a3b91e340bcde_150x150.jpg)
Tobias B.
100% (17)Projects Completed
18
Freelancers worked with
15
Projects awarded
30%
Last project
5 Oct 2020
Germany
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Tobias , Could you please send the current site's URL, it will enable us to have a look and send you the feedback?
752314
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies