Program Two:
<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>Posted a message</title>
</head>
<body bgcolor="#C0C0C0" background="">
<SCRIPT language=JavaScript>
<!--
var submitcount=0;
function checkSubmit() {
if (submitcount == 0)
{
submitcount++;
return true;
}
else {
if (submitcount>0){
alert("The post has been submitted successfully, please do not repeat posting! nDon't submit the form twice, please."); �
}
}
}
function check_com(){
if ( == 0){
submitcount--;
alert("Please input your user name!");
return false;
}
if ( ==0){
submitcount--;
alert("The topic cannot be empty! nYou must supply a subject.");
return false;
}
if ( == 0){
submitcount--;
alert("The content of the post cannot be empty! nYou must supply a message.”);
return false;
}
return true;
}
//-->
</SCRIPT>
<?
include ("c:");
?>
<?
if (empty($theme_id)) {
$theme_id = 0;
}
?>
<table width="750" border="0">
<tr>
<?
if ($theme_id == 0 ) {
print ' <td class="text">Current location: Home page—Forum—Publish forum</td>';
}
else
{
print ' <td class="text">Current location: Home page—Forum—Reply to post</td>';
}
?>
<td> </td>
</tr>
</table>
<?
print '<form action="?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">Your big</span> name:</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">Your homepage:</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">Add the title:</div>';
print ' </td> <td width="609"> ';
<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>Posted a message</title>
</head>
<body bgcolor="#C0C0C0" background="">
<SCRIPT language=JavaScript>
<!--
var submitcount=0;
function checkSubmit() {
if (submitcount == 0)
{
submitcount++;
return true;
}
else {
if (submitcount>0){
alert("The post has been submitted successfully, please do not repeat posting! nDon't submit the form twice, please."); �
}
}
}
function check_com(){
if ( == 0){
submitcount--;
alert("Please input your user name!");
return false;
}
if ( ==0){
submitcount--;
alert("The topic cannot be empty! nYou must supply a subject.");
return false;
}
if ( == 0){
submitcount--;
alert("The content of the post cannot be empty! nYou must supply a message.”);
return false;
}
return true;
}
//-->
</SCRIPT>
<?
include ("c:");
?>
<?
if (empty($theme_id)) {
$theme_id = 0;
}
?>
<table width="750" border="0">
<tr>
<?
if ($theme_id == 0 ) {
print ' <td class="text">Current location: Home page—Forum—Publish forum</td>';
}
else
{
print ' <td class="text">Current location: Home page—Forum—Reply to post</td>';
}
?>
<td> </td>
</tr>
</table>
<?
print '<form action="?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">Your big</span> name:</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">Your homepage:</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">Add the title:</div>';
print ' </td> <td width="609"> ';
123Next pageRead the full text