I try using this
[FONT=Courier New]<form method="[COLOR=#0000ff]POST[/COLOR]" action="[COLOR=#0000ff]mailer.php[/COLOR]">
<input type=“text” name="[COLOR=#0000ff]name[/COLOR]" size=“19”><br>
<br>
<input type=“text” name="[COLOR=#0000ff]email[/COLOR]" size=“19”><br>
<br>
<textarea rows=“9” name="[COLOR=#0000ff]message[/COLOR]" cols=“30”></textarea>
<br>
<br>
<input type=“submit” value=“Submit” name="[COLOR=#0000ff]submit[/COLOR]">
</form>[/FONT]
[FONT=Courier New]for my contact.htm[/FONT]
[FONT=Courier New]and[/FONT]
[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] [FONT=Courier New]for my mailer.php[/FONT]
[FONT=Courier New]It works, now the question is [COLOR=#000050]echo[/COLOR] [COLOR=#666666]“Data has been submitted to $to!”[/COLOR]; <------ can i change it to my own .html page? or i mean redirect from other pages?[/FONT]
[FONT=Courier New]Thanks![/FONT]