First step: First make a form like the following: (Note: This form is in the PHP program)
Step three: Send a greeting card
if (submit== "send")
$mainurl = "Http://lyjrich.oso.com.cn/card"; The Greeting card file home directory URL
$dataurl = "$mainurl/store"; Store the URL of the resulting greeting card
$userip = getenv ("REMOTE_ADDR");
$daten = Date ("M-month D-Day H-point I-min");
$roundno = Date ("Mdhis");
$fileno. = $roundno. ". HTML ";
$fileurl = $dataurl. " /". $fileno; Store the URL of the resulting greeting card
$subject = "Greeting card sent to you by friends";
$content = Eregi_replace ("
"," "," $text ");
$t _body. = "**************************************";
$t _body. = $f _name. "Hello:";
$t _body. = $g _username. "I sent you a greeting card from http://lyjrich.oso.com.cn. ";
$t _body. = $g _username. " The message to you said: ". $text.";
$t _body. = "Please click Http://lyjrich.oso.com.cn/card". $fileurl. "To enjoy this card";
$t _body. = "The longest card will be saved for one months. ";
$t _body. = "************************************";
$t _body. = "Send Time $daten";
$t _body. = "**************************************";
$t _body. = "Free electronic Greeting card provided by your Web site";
$t _body. = "Program production: Lyjrich (http://lyjrich.oso.com.cn)";
Mail ($f _email, $subject, $t _body, "from:". $email. ");
echo "";
$message = "
E-Card
|
&l http://www.bkjia.com/phpjc/532470.html www.bkjia.com true http://www.bkjia.com/phpjc/532470.html techarticle First step: First make a form like the following: (Note: This form Riga PHP program) Form method= "POST" action= "mailtocard.php" name= "card" onsubmit= "return Card_ Validator (Thi ... |