How to change php form - from a tutorial

HI, I have a quation about this [COLOR=“Blue”]tutorial [/COLOR]
I downloaded the file, customised it and everything is working perfect, I just would like to know how to change something in the php.

At the end of the form there is:

echo “Data has been submitted to $to!”;
mail($to, $subject, $body);

this opens a new page which says “Data has been submitted to…” . Instead of this, I would like to have a pop up box saying the same thing, staying in the same page - instead of going to a new page without any button to go back. How can I do that? :ch:

thanks!!