I have a form and i want to get all the contents from it (OnChange) and put it in an array.
Afterwards i want to send it to another file that will be included on the homepage.

<input type="text" name="name" id="name" onchange="getContents('name');">

function getContents(id){
Now instead of the alert i want to put all the contents in an array and return the values to another file.

I hope someone can help, thank you.