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]