How to send a form on page load
I have a success page that the user is directed to from paypal after making a payment from the paypal button on a web page. I need to update the users details in a database with a value of paid which I have tried to do using a form with a hidden element with the value 'paid' the form uses update record behaviour with a trigger of current page submit and javascript like this:
function load()
{
document.forms["paid"].submit();
}
But when the page loads it doesn't send the form or update the record.
Help please!