$row=mysql_fetch_array($result);
$bbs_email=$row[email];
echo "<div align='left'>您的姓名:</div>
</td>
<td width=342>
$g_username
<input type=hidden name=username value=$g_username>
</td>
</tr>
<tr>
<td width=108>
<div align=hidden>您的Email:</div>
</td>
<td width=342>
$bbs_email
<input type=hidden name=email value=$bbs_email>
";
}
//if (strlen($g_username) < 0)
else //判断没有登陆,需要填写姓名及Email。
{
echo "<div align='left'>您的姓名:</div>
</td>
<td width='342'>
<input type='text' name='username'>
</td>
</tr>
<tr>
<td width='108'>
<div align='left'>您的Email:</div>
</td>
<td width='342'>
<input type='text' name='email'>";
}
?>
</td>
</tr>
<tr>
<td width="108">
<div align="left">朋友姓名:</div>
</td>
<td width="342">
<input type="text" name="f_name">
</td>
</tr>
<tr>
<td width="108">
<div align="left">朋友Email:</div>
</td>
<td width="342">
<input type="text" name="f_email">
</td>
</tr>
<tr>
<td width="108"> </td>
<td width="342">
<input type="button" name="submit" value="预览" onclick="preview()">
<input type="submit" name="submit" value="发送">
<input type="reset" name="Submit3" value="重来">
第二步:预览
<?
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;
}
}
?>
<html>
<head>
<title>电子贺卡</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>