第二步:预览
if (submit=="预览")
{
switch($new)
{
case "newyear":
$new="newyear.gif";
break;
case "newyear2_2":
$query=newyear2_2.gif;
break;
case "newyear3_3":
$query=newyear3_3.gif;
break;
}
}
?>
电子贺卡
echo "
"; ?>
您好朋友:
echo $text; ?>
寄卡给:
echo $f_name; ?>
您的朋友:
echo $g_username; ?>
第三步:发送贺卡
if(submit=="发送")
$mainurl = "http://lyjrich.oso.com.cn/card"; //该贺卡文件主目录URL
$dataurl = "$mainurl/store"; //存放产生的贺卡的URL
$userip = getenv("REMOTE_ADDR");
$daten = date("m月d日H点i分");
$roundno = date("mdHis");
$fileno .=$roundno.".html";
$fileurl = $dataurl."/".$fileno; //存放产生的贺卡的URL
$subject="朋友给你邮的贺卡";
$content = eregi_replace("
","
","$text");
$t_body .= "**************************************
";
$t_body .= $f_name." 您好:
";
$t_body .= $g_username." 从http://lyjrich.oso.com.cn 寄了一张贺卡给你。
";
$t_body .= $g_username."给您的留言上说:
".$text ."
";
$t_body .= "请你点击http://lyjrich.oso.com.cn/card".$fileurl." 来欣赏这张贺卡
";
$t_body .= "贺卡最长将为你保存一个月。
";
$t_body .= "
************************************
";
$t_body .= "发送时间 $daten
";
$t_body .= "**************************************
";
$t_body .= "免费电子贺卡由 your web 网站提供
";
$t_body .= "程序制作:lyjrich(http://lyjrich.oso.com.cn)
";
mail($f_email,$subject,$t_body,"From: ".$email."
");
echo "";
$message ="
电子贺卡