# How to change php form - from a tutorial

**URL:** https://forum.kirupa.com/t/how-to-change-php-form-from-a-tutorial/224280
**Category:** Uncategorized
**Created:** [April 30, 2007, 8:51pm UTC](https://forum.kirupa.com/t/how-to-change-php-form-from-a-tutorial/224280 "2007-04-30T20:51:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dafnabru](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dafnabru](https://forum.kirupa.com/u/dafnabru)
#### Post date: [April 30, 2007, 8:51pm UTC](https://forum.kirupa.com/t/how-to-change-php-form-from-a-tutorial/224280/1 "2007-04-30T20:51:10Z")

</div>

HI, I have a quation about this [COLOR=“Blue”][tutorial](http://www.kirupa.com/web/php_contact_form3.htm) [/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!!
