I am writing some accommodation web-site.I am using PayPal as billing system.Before I redirect the client to the PayPal page I need to insert all relevant data to the MySql database.
My question is:how do I fire the php( from the javaScript) without waiting to it´s replay?( and that the fact that the page that fire the php will no longer exist will make no problem)
Use AJAX. Send an XMLHttpRequest to the appropriate php script with relevant data and redirect the client upon receiving successful response back from the script.