I have a link that i want to execute a query to the database after it’s clicked and then reload the page. From what i read, it could be done using javascript, but i can’t figure it out.
EDIT
Forgot to mention that i want to send 4 variables to the script and i can’t use GET because i have htaccess set to modify my URL.
In this case you need to use these concepts:
You need to user these code:
In your
JavaScriptfunction write a code to submit the from clicking the submit link.