一个模仿oso的php论坛程序源码(之二)第1/3页_php教程-查字典教程网
一个模仿oso的php论坛程序源码(之二)第1/3页
一个模仿oso的php论坛程序源码(之二)第1/3页
发布时间:2016-12-29 来源:查字典编辑
摘要:程序二: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下一页阅读全文

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新php教程学习
    热门php教程学习
    编程开发子分类