Hi another follow up, i did finally get it working after several hours of tweeking.
Now that i know how to test and work the process a bit, next time will go faster.
Today was a learning curve.
Anyway i wanted to let you know that not to use the else on the status values. This is what im talking about.
if (xmlhttp.readyState==4 && xmlhttp.status==200)
// grab the text that is echoed on the php process completion
// display that text in the div called emailstatus
// this is the area im talking about
// alert('There was a problem with the request.');
You can leave the else there if you want just comment out the contents of it.
The reason i found is that it will keep popping up that message several times until it finishes and gets the right status code.
So if you just comment it out, you will just see the final result on the page and not have to sit there and keep clicking to close the multiple alerts.