Clarify A Doubt In Integrating Smart Contract To Front End

Job ID: 34019574

Budget: ₹1,500 – ₹12,500 INR

We built a smart contract for a pre-sale token, the front end was built using HTML, CSS, and PHP, now we want to call the function in the smart contract buy() from the front end
with an argument, the BUY button in the front-end first needs to get approval from the user end and then call the function buy in the smart contract,
this can be done by creating a function in a Java script file calling functions and changing the source of BUY SLN button in HTML.

this is the GitHub link of the file: https://github.com/Gireeshbd/Connecting
Related categories: PHP JavaScript CSS HTML5 Smart Contracts