View Single Post
Old 06-30-2004, 09:44 AM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
yes, it was probably made by people who only know how to use front page.

you can put the form itself in an if/else statement:
PHP Code:
if($_POST){
  
// ALL THE MAIL CODE ABOVE GOES HERE
  
echo "Thank You, your message will be ...";
}else{
  echo 
"<form method=post action=...>";
  
// the rest of the form here
}
?> 
that way it will show the form 1st, then when the post, it just says thank you and sends the email.
__________________
Mike
sde is offline   Reply With Quote