程序二: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("帖子已成功提交,請勿重復發帖!nDont 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>