Step 1: First make the following form: (Note: php program is added to this form) & lt; forpolichodpostactionmailtocard. phpnamecardonSubmitreturncard_Validator (this) & gt; & lt; tablewidth?border0cellspacing0cellpad Step 1: First make the following form: (Note: php program is added to this form)
Step 3: send greeting cards
If (submit = "Send ")
$ Mainurl = "http://lyjrich.oso.com.cn/card"; // the home directory URL of the greeting card file
$ Dataurl = "$ mainurl/store"; // The URL of the generated greeting card.
$ Userip = getenv ("REMOTE_ADDR ");
$ Daten = date ("m Month D day H point I ");
$ Roundno = date ("mdHis ");
$ Fileno. = $ roundno. ". html ";
$ Fileurl = $ dataurl. "/". $ fileno; // The URL for storing the generated greeting card
$ Subject = "greeting cards mailed to you by a friend ";
$ Content = eregi_replace ("
"," "," $ Text ");
$ T_body. = "************************************** ";
$ T_body. = $ f_name. "Hello :";
$ T_body. = $ g_username. "sent you a greeting card from the http://lyjrich.oso.com.cn. ";
$ T_body. = $ g_username. "the message". $ text ."";
$ T_body. = "please click http://lyjrich.oso.com.cn/card". $ fileurl. "to enjoy this card ";
$ T_body. = "the greeting card is saved for up to one month. ";
$ T_body. = "************************************";
$ T_body. = "sending time $ daten ";
$ T_body. = "************************************** ";
$ T_body. = "free e-cards are provided by the your web site ";
$ T_body. = "program production: lyjrich (http://lyjrich.oso.com.cn )";
Mail ($ f_email, $ subject, $ t_body, "From:". $ email ."");
Echo"