PHP 留言板,完美!
<html> <head> <title>留言板设计</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css"> <!-- body,td,th { font-size: 14px; color: #003399; } .xs{ font-size:12px} --> </style></head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/pub_01.gif" style="background-repeat:repeat-x"> <!-- ImageReady Slices (留言板设计(参考)副本.jpg) --> <form name="form1" method="post" action="add.asp"> <table width="600" height="500" border="0" align="center" cellpadding="0" cellspacing="0" id="__01"> <tr> <td width="36" height="500" rowspan="6"> </td> <td height="35" colspan="4"> </td> <td width="50" height="500" rowspan="6"> </td> </tr> <tr> <td colspan="4"><img src="images/pub_04.gif" width="514" height="69" alt=""></td> </tr> <tr> <td width="19" rowspan="4"><img src="images/pub_05.gif" width="19" height="396" alt=""></td> <td colspan="3"><img src="images/pub_06.gif" width="495" height="22" alt=""></td> </tr> <tr> <td><img src="images/pub_07.gif" width="49" height="321" alt=""></td> <td width="317" height="321" background="images/2_02.gif"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="17" colspan="4"> </td> </tr> <tr> <td width="61" height="30">昵称:</td> <td width="235" height="30" colspan="2"><input type="text" name="nc" style="width:120px; height:25px; border:solid #000000 1px;"></td> <td width="21" height="30"> </td> </tr> <tr> <td width="61" height="30">标题:</td> <td height="30" colspan="2"><input type="text" name="bt" style="width:180px; height:25px; border:solid #000000 1px;"></td> <td height="30"> </td> </tr> <tr> <td height="135" valign="middle">内容:</td> <td height="135" colspan="2" valign="middle"><textarea name="nr" cols="30" rows="10" style="border:solid #000000 1px;"></textarea></td> <td height="135"> </td> </tr> <tr> <td height="30"> </td> <td height="30" align="center"><input type="image" name="imageField" src="images/2_05.gif"> <a href="#"><img src="images/2_07.gif" width="62" height="33" border="0"></a></td> <td align="center" class="xs"><a href="view.asp">显示留言</a></td> <td height="30"><a href="view.asp"></a></td> </tr> </table></td> <td><img src="images/pub_09.gif" width="129" height="321" alt=""></td> </tr> <tr> <td colspan="3"><img src="images/pub_10.gif" width="495" height="22" alt=""></td> </tr> <tr> <td height="31" colspan="3"> </td> </tr> </table> </form> <!-- End ImageReady Slices --> </body> </html> <script language="vbscript"> function biaodan() dim usernc,userbt,usernr usernc=form1.nc.value userbt= form1.bt.value usernr=form1.nr.value if len(trim(usernc))<6 then alert("你输入的昵称有误!") biaodan=false exit function else if userbt="" then alert("你输入的标题有误!") biaodan=false exit function else if usernr="" then alert ("你输入的内容有误!") biaodan=false exit function end if end if end if end function sub quxiao() form1.nc.value="" form1.bt.value="" form1.nr.value="" end sub </script>
- 1
- 6到不胜寒2013-04-18嗯,写得不错,可以借鉴。
- 粉丝: 0
- 资源: 2
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助