您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

用php与mysql的电子贺卡程序_PHP教程

2024/6/2 16:23:33发布63次查看
第一步:首先作一个如下面的表单:(注:这个表单里加了php程序)
你好朋友:
--卡片背景音乐--
一千零一夜
canyon
if (strlen($g_username) > 1)
{
//判断是否登陆,若已登陆显示姓名及email,不用填写。
$db=mysql_connect(localhost,root,);
$result=mysql_db_query(数据库名,select email,http from 数据库表名 where username=$g_username);
$row=mysql_fetch_array($result);
$bbs_email=$row[email];
echo
您的姓名:
$g_username
您的email:
$bbs_email
;
}
//if (strlen($g_username) else //判断没有登陆,需要填写姓名及email。
{
echo 您的姓名:
您的email:
;
}
?>
朋友姓名:
朋友email:
第二步:预览
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 ; ?>
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product