一个模仿oso的php论坛程序源码(之二)第1/3页
时间:2024-05-02 17:07:10
程序二:addforum.php
<html>
<head>
<link rel="STYLESHEET" type="text/css" href="fp_zhangcg.css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Microsoft Theme" content="none">
<meta name="Microsoft Border" content="none">
<title>发表信息</title>
</head>
<body bgcolor="#C0C0C0" background="backcolor.gif">
<SCRIPT language=JavaScript>
<!--
var submitcount=0;
function checkSubmit() {
if (submitcount == 0)
{
submitcount++;
return true;
}
else {
if (submitcount>0){
alert("帖子已成功提交,请勿重复发帖!nDon't submit the form twice, please."); return false;
}
}
}
function check_com(){
if (document.form.username.value.length == 0){
submitcount--;
alert("请输入您的网上大名!nPlease input your user name.");
return false;
}
if (document.form.forumtitle.value.length ==0){
submitcount--;
alert("主题不能为空!nYou must supply a subject.");
return false;
}
if (document.form.forumcontent.value.length == 0){
submitcount--;
alert("加贴内容不能为空!nYou must supply a message.");
return false;
}
return true;
}
//-->
</SCRIPT>
<?
include ("c:mydbheader.inc");
?>
<?
if (empty($theme_id)) {
$theme_id = 0;
}
?>
<table width="750" border="0">
<tr>
<?
if ($theme_id == 0 ) {
print ' <td class="text">当前位置:主页——论坛——发表论坛</td>';
}
else
{
print ' <td class="text">当前位置:主页——论坛——回复帖子</td>';
}
?>
<td> </td>
</tr>
</table>
<?
print '<form action="readforum.php?readflag=0 " ';
print ' method=post name=form onsubmit="return check_com()">';
?>
<table width="750" border="0">
<tr>
<td width="131" class="text">
<div align="right"><span class="text"><span class="text">您的大</span>名:</span></div>
</td>
<td width="609">
<input type="text" name="username" size="80" value="" maxlength="12">
<font color="#ff0000">*</font> </td>
</tr>
<tr>
<td width="131" class="text">
<div align="right">E_mail:</div>
</td>
<td width="609">
<input type="text" name="useremail" size="80">
</td>
</tr>
<tr>
<td width="131" class="text">
<div align="right">你的主页:</div>
</td>
<td width="609">
<p>
<input type="text" name="userhttp" size="80" value="http://">
</p>
</td>
</tr>
<tr>
<td width="131" class="text">
<?
if ($theme_id == 0 ) {
print ' <div align="right">加帖标题:</div>';
print ' </td> <td width="609"> ';
123下一页阅读全文
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python函数参数定义及传递方式解析
Firefox与IE下UL预设标记的异同
python序列类型种类详解
神经网络python源码分享
![](https://img.aspxhome.com/file/2023/0/90790_0s.jpg)
display:inline问题小结
Python实现简单的HttpServer服务器示例
sqlserver中Case的使用方法(上下篇)第1/2页
深入理解vue中的slot与slot-scope
![](https://img.aspxhome.com/file/2023/0/130850_0s.png)
python机器学习包mlxtend的安装和配置详解
![](https://img.aspxhome.com/file/2023/3/135373_0s.png)
简单实例解释Oracle分页查询
![](https://img.aspxhome.com/file/2023/0/63730_0s.jpg)
SQL Server比较常见数据类型详解
Mac下Supervisor进程监控管理工具的安装与配置
基于jQuery.validate及Bootstrap的tooltip开发气泡样式的表单校验组件思路详解
![](https://img.aspxhome.com/file/2023/6/136916_0s.png)
一个轻量级的XHTML右键菜单[支持IE和firefox]
发一段鼠标掠过表格行颜色改变的代码
浮动元素对浏览器的支持
在Python中字典根据多项规则排序的方法
Python实现视频目标检测与轨迹跟踪流程详解
![](https://img.aspxhome.com/file/2023/3/118543_0s.png)
js实现一个日期联动下拉菜单
python 动态生成变量名以及动态获取变量的变量名方法
![](https://img.aspxhome.com/file/2023/7/133727_0s.jpg)