返回   CHF站长论坛 > 综合讨论区 > 网站开发与设计

网站开发与设计 网页设计、网站开发、网站维护与调试交流区。

魔兽世界私服 奇迹私服 双至强仅二千,企商在线,最早租用商 亿恩1元帮您升级服务器! 江民杀毒软件2008年推广计划
传奇世界私服 传世私服 传奇私服 明网Linux合租空间,独立IP 全球最新的创意科技产品 魔域私服 传奇私服 魔域私服 完美世界私服
发表新主题 回复
 
主题工具 主题评分 显示模式
旧 2008-03-05, 15:10   #1 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认 老鬼,你的站的提交表单能不能给偶提供下学习阿?

老鬼,你的站的提交表单能不能给偶提供下学习阿?

http://www.chinahtml.com/submit/addtrade.php
http://www.chinahtml.com/submit/addurl.php

http://www.chinahtml.com/submit/addnews.php

能不能大概说一下怎么做呢?
wuhao 当前离线   回复时引用此帖
旧 2008-03-05, 15:11   #2 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认

最好可以提供一下呀
wuhao 当前离线   回复时引用此帖
旧 2008-03-05, 15:11   #3 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认

在线等待老鬼
wuhao 当前离线   回复时引用此帖
旧 2008-03-05, 15:16   #4 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认

hhaahaahaahhahaaaa
wuhao 当前离线   回复时引用此帖
旧 2008-03-05, 15:17   #5 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认

upupupupupppupup
wuhao 当前离线   回复时引用此帖
旧 2008-03-05, 15:19   #6 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认

123561232456123456123456123456123456123465123456123456
wuhao 当前离线   回复时引用此帖
旧 2008-03-05, 16:07   #7 (页面定位)
老鬼
CH重振中
 
老鬼 的头像
 
注册日期: 2005-08-30
住址: 地球
帖子: 12228
老鬼 的声望功能已被禁用
默认

4.7不需要用php文件了,直接html文件

HTML 代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>投稿 - 站长资讯</title>
<meta name="robots" content="noindex, nofollow, noarchive">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="description" content="站长资讯投稿">
<meta name="keywords" content="站长资讯投稿">
<style type="text/css">
@import "images/cp.css";
@import "images/customcp.css";
</style>
<script type="text/javascript" src="images/dynamic.js"></script>
</head>
<body class="firefox" id="public">
<img id="top" src="images/top.png" alt="" />
<div id="container">
  <h1><a href="/">站长资讯</a></h1>
  <form class="wufoo" enctype="multipart/form-data" method="post" action="/e/DoInfo/ecms.php">
    <div class="info">
      <h2>新闻投稿</h2>
      <p>欢迎你的来稿,来稿要经过我们的审核才可以通过,请仔细填写,带<span class="req">*</span>号的为必填项目.</p>
    </div>
    <ul>
      <li>
        <label class="desc" for="itle"> 标题 <span class="req">*</span></label>
        <div>
          <input id="Field5" name="title" class="field text medium" type="text" maxlength="255" value="" />
        </div>
      </li>
      <li>
        <label class="desc" for="classid"> 请选择栏目 (请选择底色为蓝色的终极栏目)<span class="req">*</span></label>
        <div>
          <select class="field select medium" id="classid" name="classid">
            <script src="/d/js/js/addinfo1.js"></script>
          </select>
        </div>
      </li>
      <li>
        <label class="desc" for="writer"> 作者 </label>
        <div>
          <input id="writer" name="writer" class="field text small" maxlength="255" value="" type="text">
        </div>
      </li>
      <li>
        <label class="desc" for="befrom"> 来源 </label>
        <div>
          <input id="befrom" name="befrom" class="field text small" maxlength="255" value="" type="text">
        </div>
      </li>
      <li>
        <label class="desc" for="smalltext"> 内容简介 </label>
        <div>
          <textarea id="smalltext" name="smalltext" rows="10" cols="50" class="field textarea small"></textarea>
        </div>
      </li>
      <li>
        <label class="desc" for="newstext"> 新闻正文 <span class="req">*</span></label>
        <div>
          <textarea id="newstext" name="newstext" rows="10" cols="50" class="field textarea large"></textarea>
        </div>
      </li>
      <li class="buttons">
        <input type="hidden" name="ecmsfrom" value="" />
		<input type="hidden" name="mid" value="1" />
		<input type="hidden" name="enews" value="MAddInfo" />
		<input id="saveForm" class="btTxt" value="提交" type="submit">
      </li>
    </ul>
  </form>
</div>
<img id="bottom" src="images/bottom.png" alt="" />
<div id="footer">
  <p> <a href="/siteinfo/aboutus.shtml">关于站点</a> - <a href="/siteinfo/advertisement.shtml">广告服务</a> - <a href="/siteinfo/contact.shtml">联系我们</a> - <a href="/siteinfo/copyright.shtml">版权隐私</a> - <a href="/siteinfo/promise.shtml">免责声明</a> - <a href="/siteinfo/service.shtml">服务条款</a> - <a href="http://www.phome.net" rel="external">程序支持</a> - <a  href="/siteinfo/sitemap.shtml">网站地图</a></p>
</div>
</body>
</html>
老鬼 当前离线   回复时引用此帖
旧 2008-03-05, 16:16   #8 (页面定位)
tension©
不知道叫什么好
 
tension 的头像
 
注册日期: 2007-07-14
帖子: 264
tension 是普普通通的会员
默认

老鬼是好人啊


北京易联恒信科技有限公司
出售PHPMYSQL空间,支持HTACCESS.博客专用空间 155元.
www.elinkhost.com

tension 当前离线   回复时引用此帖
旧 2008-03-05, 16:17   #9 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认

太感谢老鬼了,总是在最需要帮助的时候,老鬼就出现,5555

还有个问题就是如何能发布后,马上跳转到生成的html页面呢???
wuhao 当前离线   回复时引用此帖
旧 2008-03-05, 16:17   #10 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认

引用:
作者: tension 查看帖子
老鬼是好人啊
是阿,老鬼对偶学习ECMS的帮助,是巨大滴。。。。。。。。没有老鬼偶现在好多东西都搞不成
wuhao 当前离线   回复时引用此帖
旧 2008-03-05, 16:17   #11 (页面定位)
tension©
不知道叫什么好
 
tension 的头像
 
注册日期: 2007-07-14
帖子: 264
tension 是普普通通的会员
默认

那就看自己提交的页面了呀


北京易联恒信科技有限公司
出售PHPMYSQL空间,支持HTACCESS.博客专用空间 155元.
www.elinkhost.com

tension 当前离线   回复时引用此帖
旧 2008-03-05, 16:23   #12 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认

引用:
作者: tension 查看帖子
那就看自己提交的页面了呀
可是不知道怎么改让它挑到生成的页面呢。。。
wuhao 当前离线   回复时引用此帖
旧 2008-03-05, 16:24   #13 (页面定位)
老鬼
CH重振中
 
老鬼 的头像
 
注册日期: 2005-08-30
住址: 地球
帖子: 12228
老鬼 的声望功能已被禁用
默认

这个做不到,只能返回固定的地址

返回变量的使用方法:
在制作提交表单加上ecmsfrom变量项即可,如:<input type=hidden name=ecmsfrom value="http://www.phome.net">,表示提交后返回到官方首页。


ecmsfrom变量值有三种方式:
1、如果不设置则返回系统默认的地址
2、如果值为9,那么返回的是提交地址,系统自动识别
3、如果设置除了9以外其它值,将返回变量值的地址。
老鬼 当前离线   回复时引用此帖
旧 2008-03-05, 16:35   #14 (页面定位)
wuhao
青铜长老
 
注册日期: 2006-05-23
帖子: 266
wuhao 是普普通通的会员
默认

超级感谢老鬼,这样也不错了,多做几个表单吧,每个表单返回到每个的栏目页面好了,不知道还有什么办法可以更快的显示出自己发布的信息不
wuhao 当前离线   回复时引用此帖
旧 2008-03-09, 12:49   #15 (页面定位)
superxin
高级站友
 
注册日期: 2007-06-27
帖子: 119
superxin 是普普通通的会员
默认

老鬼真是好人 哈哈
superxin 当前离线   回复时引用此帖
回复

书签

标签

主题工具
显示模式 对此主题评分
对此主题评分:



所有时间均为北京时间。现在的时间是 06:33