
Fix issues with js and php calls
- or -
Post a project like this49
£50(approx. $67)
- Posted:
- Proposals: 10
- Remote
- #4444562
- Awarded
Digital Web & AI Automation Agency | Expert in WordPress, Shopify & Custom Development



⭐⭐⭐⭐⭐ Top Awarded Resume & CV Writing Expert | ATS Resume Optimization | US, UK & Canada Job Market Specialist, Transcript, Translate, SEO OPTIMIZATION EXPERT| Graphic Designer Expert

Expert in php python devops nodejs perl OpenAI AIML API AWS web scraping shopify wordpress N8N Docker k8 reactjs fastapi django flask yii cakephp laravel data Analyst

227480456231482409439122525011119304212843820664812223893873911912607036
Description
Experience Level: Entry
Hi,
Look at this: https://pcworkshopslondon.co.uk/task/index.html
and at this: https://pcworkshopslondon.co.uk/project2/index.html
They work as expected.
But, I then move the JS file to the js folder.
Now it does NOT work!
Task :
*** Both projects above should be fixed so that the js file is moved to the js folder and the correct data is still returned.
To help you:
** Here is my code, with the folders the way I would like them, but it does not work: https://pcworkshopslondon.co.uk/test/index.html .
It always returns GB, the default.
I have in the php: $username = isset($data['username']) ? $data['username'] : 'GB';
It always returns GB data
Required folder structure:
** Favicon, index.html and php in root folder,
** css in css folder,
** js in the js folder.
This folder structure cannot be changed.
Interaction:
** Js is called from index.html.
** The js file calls the php file.
** The php file request data from the Geonames api and returns is to js that sets values to innerhtml on the index.html.
Hosting
** The working code should be tested on my godaddy hosting, and work there!
** I will supply ftp details.
Disclaimer:
** If the code does not work as expected , I cannot make the final payment.
NDA
** NDA should be signed
Look at this: https://pcworkshopslondon.co.uk/task/index.html
and at this: https://pcworkshopslondon.co.uk/project2/index.html
They work as expected.
But, I then move the JS file to the js folder.
Now it does NOT work!
Task :
*** Both projects above should be fixed so that the js file is moved to the js folder and the correct data is still returned.
To help you:
** Here is my code, with the folders the way I would like them, but it does not work: https://pcworkshopslondon.co.uk/test/index.html .
It always returns GB, the default.
I have in the php: $username = isset($data['username']) ? $data['username'] : 'GB';
It always returns GB data
Required folder structure:
** Favicon, index.html and php in root folder,
** css in css folder,
** js in the js folder.
This folder structure cannot be changed.
Interaction:
** Js is called from index.html.
** The js file calls the php file.
** The php file request data from the Geonames api and returns is to js that sets values to innerhtml on the index.html.
Hosting
** The working code should be tested on my godaddy hosting, and work there!
** I will supply ftp details.
Disclaimer:
** If the code does not work as expected , I cannot make the final payment.
NDA
** NDA should be signed
Sara B.
99% (151)Projects Completed
151
Freelancers worked with
105
Projects awarded
33%
Last project
23 Dec 2025
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-

Can you confirm whether the PHP file is currently able to receive requests from the JS in the new js folder on your GoDaddy hosting, or should I also handle any CORS or path adjustments?
1142589
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