手机
当前位置:查字典教程网 >编程开发 >php教程 >一个模仿oso的php论坛程序源码(之二)第1/3页
一个模仿oso的php论坛程序源码(之二)第1/3页
摘要:程序二:addforum.php发表信息您的大名:*E_mail:你的主页:

程序二:addforum.php

<html>

<head>

<linkrel="STYLESHEET"type="text/css"href="fp_zhangcg.css">

<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">

<metaname="MicrosoftTheme"content="none">

<metaname="MicrosoftBorder"content="none">

<title>发表信息</title>

</head>

<bodybgcolor="#C0C0C0"background="backcolor.gif">

<SCRIPTlanguage=JavaScript>

<;

alert("请输入您的网上大名!nPleaseinputyourusername.");

returnfalse;

}

if(document.form.forumtitle.value.length==0){

submitcount--;

alert("主题不能为空!nYoumustsupplyasubject.");

returnfalse;

}

if(document.form.forumcontent.value.length==0){

submitcount--;

alert("加贴内容不能为空!nYoumustsupplyamessage.");

returnfalse;

}

returntrue;

}

//-->

</SCRIPT>

<?

include("c:mydbheader.inc");

?>

<?

if(empty($theme_id)){

$theme_id=0;

}

?>

<tablewidth="750"border="0">

<tr>

<?

if($theme_id==0){

print'<tdclass="text">当前位置:主页——论坛——发表论坛</td>';

}

else

{

print'<tdclass="text">当前位置:主页——论坛——回复帖子</td>';

}

?>

<td></td>

</tr>

</table>

<?

print'<formaction="readforum.php?readflag=0"';

print'method=postname=formonsubmit="returncheck_com()">';

?>

<tablewidth="750"border="0">

<tr>

<tdwidth="131"class="text">

<divalign="right"><spanclass="text"><spanclass="text">您的大</span>名:</span></div>

</td>

<tdwidth="609">

<inputtype="text"name="username"size="80"value=""maxlength="12">

<fontcolor="#ff0000">*</font></td>

</tr>

<tr>

<tdwidth="131"class="text">

<divalign="right">E_mail:</div>

</td>

<tdwidth="609">

<inputtype="text"name="useremail"size="80">

</td>

</tr>

<tr>

<tdwidth="131"class="text">

<divalign="right">你的主页:</div>

</td>

<tdwidth="609">

<p>

<inputtype="text"name="userhttp"size="80"value="http://">

</p>

</td>

</tr>

<tr>

<tdwidth="131"class="text">

<?

if($theme_id==0){

print'<divalign="right">加帖标题:</div>';

print'</td><tdwidth="609">';

当前1/3页123下一页阅读全文

【一个模仿oso的php论坛程序源码(之二)第1/3页】相关文章:

我的论坛源代码(二)

我的论坛源代码(十)

在apache下限制每个虚拟主机的并发数!!!!

一个php作的文本留言本的例子(二)

一个连接两个不同MYSQL数据库的PHP程序

我的论坛源代码(九)

一个多文件上传的例子(原创)

我的论坛源代码(三)

一个php作的文本留言本的例子(一)

使用php通过Socket进行发信源码,支持发信认证

精品推荐
分类导航