This is the code I have:..
<?
if(!isset($name)) {
show_form();
}
else if(empty($name)) {
echo 'Please enter your name.';
show_form($name,$email,$comment);
}
else if(empty($comment)) {
echo 'Please enter your comments.';
show_form($name,$email,$comment);
}
else {
echo 'Thank you '.ucfirst($name).' for your feedback.';
mail($toaddress, $subject, $mailcontent, "From:$email");
}
?>
Thanks for your help!!