Just a simple question (I think).

Have a look at the code in this fiddle: <http://jsfiddle.net/d9wdM/1/>

What I doing is creating a website as a personal project that let's the user enter any amount of names and e-mail addresses and once the form is submitted, a random name is selected from the names and an e-mail is sent to that person and also their name is outputted on the page.

I can get the AJAX call to work but I don't know how to pass the name variable back from process.php to index.php as all it can return is a 1.

I hope that makes sense, if it doens't please let me know and I will try and make it clearer.

Thanks again,

Martin