Beginner's Help Requested

the mail() function

Moderators: egami, macek, gesf

Post Reply
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Wed Dec 04, 2002 7:41 am

Code: Select all

<?
is (!isset($form))
{
echo "<form method=POST action=$PHP_SELF>
Nickname <input type=text name=nick><br>
Email <input type=text name=email><br>
<input type=text value=0 name=form>
<input type=submit value=send>
</form>";
} else {
$message = "$_POST[nick] entered email address $_POST[email]";
mail ("feedback@creative.net.ua", "feedback submission", $message);
echo "Thank you.";
}
?>


you can change this code for your needs.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest