search
Homephp教程php手册用php与mysql的电子贺卡程序

用php与mysql的电子贺卡程序

Jun 13, 2016 am 10:21 AM
mysqlphpanduseofprogramformthisfirst

第一步:首先作一个如下面的表单:(注:这个表单里加了php程序)




















用php与mysql的电子贺卡程序


用php与mysql的电子贺卡程序


用php与mysql的电子贺卡程序





 






























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 "用php与mysql的电子贺卡程序"; ?>




Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools