# PHP Contact Form question

**URL:** <https://forum.kirupa.com/t/php-contact-form-question/196986>\
**Category:** programming\
**Created:** [August 12, 2006, 12:18pm UTC](https://forum.kirupa.com/t/php-contact-form-question/196986 "2006-08-12T12:18:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superhunk](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/superhunk/32/2528_2.png) [@superhunk](https://forum.kirupa.com/u/superhunk)\
**Post date:** [August 12, 2006, 12:18pm UTC](https://forum.kirupa.com/t/php-contact-form-question/196986/1 "2006-08-12T12:18:21Z")

</div>

Hi guys, I used the PHP Contact Form codes from the tutorial and it works fine. But my question is how do you change the looks of the page after the submit button is clicked?

It just shows, [COLOR=#666666]“Data has been submitted to $to!” in a plain text and white background.[/COLOR]

thanks for any help.:}

* * *

[COLOR=#0000ff]\<?[/COLOR][COLOR=#000050]php[/COLOR] [COLOR=#006610]if[/COLOR]COLOR=#0000ff[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#000050]$to[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#666666]“you@you.com”[/COLOR]; [COLOR=#000050]$subject[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#666666]“Form Tutorial”[/COLOR]; [COLOR=#000050]$name\_field[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#000050]$\_POST[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#666666]‘name’[/COLOR][COLOR=#0000ff]][/COLOR]; [COLOR=#000050]$email\_field[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#000050]$\_POST[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#666666]‘email’[/COLOR][COLOR=#0000ff]][/COLOR]; [COLOR=#000050]$message[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#000050]$\_POST[/COLOR][COLOR=#0000ff][[/COLOR][COLOR=#666666]‘message’[/COLOR][COLOR=#0000ff]][/COLOR]; [COLOR=#000050]$body[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#666666]“From: $name\_field  
E-Mail: $email\_field  
Message:  
$message”[/COLOR]; [COLOR=#000050]echo[/COLOR] [COLOR=#666666]“Data has been submitted to $to!”[/COLOR]; [COLOR=#000050]mail[/COLOR][COLOR=#0000ff]([/COLOR][COLOR=#000050]$to[/COLOR], [COLOR=#000050]$subject[/COLOR], [COLOR=#000050]$body[/COLOR][COLOR=#0000ff])[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#006610]else[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#000050]echo[/COLOR] [COLOR=#666666]“blarg!”[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#0000ff]?\>[/COLOR]
