一个简单的新闻系统
新闻首页:
文件名 fabiao.htm:

<title>xinwen</title>
<body background="../../../zhangzl/public_html/ago/code/long.jpg"]
[div align=
"center"]
<Script LANGUAGE=
"JavaScript"]
function formCheck()
{
if (document.theform.title.value ==
"")
{
alert(
"请填写标题!");
return false;
}
if (document.theform.keyw.value ==
"")
{
alert(
"请填写新闻关键字!");
return false;
}
if (document.theform.author.value ==
"")
{
alert(
"请填写您的名字!");
return false;
}
if (document.theform.content.value ==
"")
{
alert(
"请填写您的新闻内容!");
return false;
}
}
</Script>
<font face=
"华文中宋"><b><font size="6" color="#FF0000">发表新闻</font></b></font><br>
[/div]
<form NAME=
"theform" ACTION="insert.jsp" METHOD="post" onSubmit="return formCheck()"]
<table width=
"80%" border="0" height="475" align="center"]
<tr>
<td width=
"18%"]<font color="#3333FF">标题:</font></td>
<td colspan=
"2"]
<input type=
"text" name="title"]
</td>
</tr>
<tr>
<td width=
"18%"]<font color="#3333FF">关键字: </font></td>
<td colspan=
"2"]
<input type=
"text" name="keyw" size="46"]
</td>
</tr>
<tr>
<td width=
"18%"]<font color="#3333FF">作者:</font></td>
<td colspan=
"2"]
<input type=
"text" name="author" size="50"]
</td>
</tr>
<tr>
<td width=
"18%" align="left" valign="bottom"]<font color="#3333FF">内容:</font></td>
<td colspan=
"2"]
<textarea name=
"content" cols="70" rows="9"]</textarea>
</td>
</tr>
<tr>
<td height=
"50" width="18%"]
[div align=
"left"]
<input type=
"submit" name="go" value="o k"]
[/div]
</td>
<td height=
"50" width="42%"]
<input type=
"reset" name="Submit2" value="Reset"]
<a href =
"show.jsp"] [/url]</td>
<td height=
"50" width="40%"]<a href = "show.jsp"]<font color="#FF0000">查看新闻</font>[/url]</td>
</tr>
</table>
</form>
lunzi   2004-11-09 20:24:12 评论:0   阅读:1576   引用:0

发表评论>>

署名发表(评论可管理,不必输入下面的姓名)

姓名:

主题:

内容: 最少15个,最长1000个字符

验证码: (如不清楚,请刷新)

Copyright@2004-2010 powered by YuLog