_php Tutorial with PHP e-card program with MySQL

Source: Internet
Author: User
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 ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.