xhtml/css
兼容浏览器的作法:
<form name="seachfrm" method="post">
<ul>
<li ><input type="checkbox" checked="" value="150" name="selstores[]" > 世茂滨江店</li>
<li><input type="checkbox" checked="" value="151" name="selstores[]" >众鑫店</li>
</ul>
</form>
var len = document.forms['seachfrm'].elements['selstores[]'].length;
var c=0;
for(var i=0;i<len;i++){
if(document.forms['seachfrm'].elements['selstores[]'][i].checked){
c++;
}
}
<?php
//输出array();
print_r($_POST['selstores']);
?>
<form name="seachfrm" method="post">
<ul>
<li ><input type="checkbox" checked="" value="150" name="selstores[]" > 世茂滨江店</li>
<li><input type="checkbox" checked="" value="151" name="selstores[]" >众鑫店</li>
</ul>
</form>
var len = document.forms['seachfrm'].elements['selstores[]'].length;
var c=0;
for(var i=0;i<len;i++){
if(document.forms['seachfrm'].elements['selstores[]'][i].checked){
c++;
}
}
<?php
//输出array();
print_r($_POST['selstores']);
?>
http://www.dynamicdrive.com/dynamicindex17/
IE浏览器可以安装HttpWatch 这个软件,它可以让你看到网页的
http Header 信息,cookie, html内容等等,对网页编程有很大帮助。
截图如下:

在firefox浏览器下面,可以用这个软件Firebug 1.0
,也是功能很强大的,必须通过firefox安装。大大增强了xhtml,css,js的代码可读性,支持代码褶叠;类似dreamweaver的边设计边看代码的功能。
http://www.getfirebug.com/
http Header 信息,cookie, html内容等等,对网页编程有很大帮助。
截图如下:

在firefox浏览器下面,可以用这个软件Firebug 1.0
,也是功能很强大的,必须通过firefox安装。大大增强了xhtml,css,js的代码可读性,支持代码褶叠;类似dreamweaver的边设计边看代码的功能。
http://www.getfirebug.com/
1.cache-control
详细:
HTTP 1.1. Allowed values = PUBLIC | PRIVATE | NO-CACHE | NO-STORE.
Public - may be cached in public shared caches
Private - may only be cached in private cache
no-Cache - may not be cached
no-Store - may be cached but not archived
The directive CACHE-CONTROL:NO-CACHE indicates cached information should not be used and instead requests should be forwarded to the origin server. This directive has the same semantics as the PRAGMA:NO-CACHE.
Clients SHOULD include both PRAGMA:NO-CACHE and CACHE-CONTROL:NO-CACHE when a no-cache request is sent to a server not known to be HTTP/1.1 compliant.
Also see EXPIRES.
Note: It may be better to specify cache commands in HTTP than in META statements, where they can influence more than the browser, but proxies and other intermediaries that may cache information.
2.EXPIRES
说明:
The date and time after which the document should be considered expired. An illegal EXPIRES date, e.g. "0", is interpreted as "now". Setting EXPIRES to 0 may thus be used to force a modification check at each visit.
Web robots may delete expired documents from a search engine, or schedule a revisit.
HTTP 1.1 (RFC 2068) specifies that all HTTP date/time stamps MUST be generated in Greenwich Mean Time (GMT) and in RFC 1123 format.
RFC 1123 format = wkday "," SP date SP time SP "GMT"
wkday = (Mon, Tue, Wed, Thu, Fri, Sat, Sun)
date = 2DIGIT SP month SP 4DIGIT ; day month year (e.g., 02 Jun 1982)
time = 2DIGIT ":" 2DIGIT ":" 2DIGIT ; 00:00:00 - 23:59:59
month = (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)
3.Refresh
4.PRAGMA NO-CACHE
说明:
This directive indicates cached information should not be used and instead requests should be forwarded to the origin server. This directive has the same semantics as the CACHE-CONTROL:NO-CACHE directive and is provided for backwards compatibility with HTTP/1.0.
Clients SHOULD include both PRAGMA:NO-CACHE and CACHE-CONTROL:NO-CACHE when a no-cache request is sent to a server not known to be HTTP/1.1 compliant.
HTTP/1.1 clients SHOULD NOT send the PRAGMA request-header. HTTP/1.1 caches SHOULD treat "PRAGMA:NO-CACHE" as if the client had sent "CACHE-CONTROL:NO-CACHE".
Also see EXPIRES.
来源:http://www.i18nguy.com/markup/metatags.html
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
详细:
HTTP 1.1. Allowed values = PUBLIC | PRIVATE | NO-CACHE | NO-STORE.
Public - may be cached in public shared caches
Private - may only be cached in private cache
no-Cache - may not be cached
no-Store - may be cached but not archived
The directive CACHE-CONTROL:NO-CACHE indicates cached information should not be used and instead requests should be forwarded to the origin server. This directive has the same semantics as the PRAGMA:NO-CACHE.
Clients SHOULD include both PRAGMA:NO-CACHE and CACHE-CONTROL:NO-CACHE when a no-cache request is sent to a server not known to be HTTP/1.1 compliant.
Also see EXPIRES.
Note: It may be better to specify cache commands in HTTP than in META statements, where they can influence more than the browser, but proxies and other intermediaries that may cache information.
2.EXPIRES
<META HTTP-EQUIV="EXPIRES"
CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
说明:
The date and time after which the document should be considered expired. An illegal EXPIRES date, e.g. "0", is interpreted as "now". Setting EXPIRES to 0 may thus be used to force a modification check at each visit.
Web robots may delete expired documents from a search engine, or schedule a revisit.
HTTP 1.1 (RFC 2068) specifies that all HTTP date/time stamps MUST be generated in Greenwich Mean Time (GMT) and in RFC 1123 format.
RFC 1123 format = wkday "," SP date SP time SP "GMT"
wkday = (Mon, Tue, Wed, Thu, Fri, Sat, Sun)
date = 2DIGIT SP month SP 4DIGIT ; day month year (e.g., 02 Jun 1982)
time = 2DIGIT ":" 2DIGIT ":" 2DIGIT ; 00:00:00 - 23:59:59
month = (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)
3.Refresh
<META HTTP-EQUIV="REFRESH"
CONTENT="15;URL=http://www.I18nGuy.com/index.html">
CONTENT="15;URL=http://www.I18nGuy.com/index.html">
4.PRAGMA NO-CACHE
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
说明:
This directive indicates cached information should not be used and instead requests should be forwarded to the origin server. This directive has the same semantics as the CACHE-CONTROL:NO-CACHE directive and is provided for backwards compatibility with HTTP/1.0.
Clients SHOULD include both PRAGMA:NO-CACHE and CACHE-CONTROL:NO-CACHE when a no-cache request is sent to a server not known to be HTTP/1.1 compliant.
HTTP/1.1 clients SHOULD NOT send the PRAGMA request-header. HTTP/1.1 caches SHOULD treat "PRAGMA:NO-CACHE" as if the client had sent "CACHE-CONTROL:NO-CACHE".
Also see EXPIRES.
来源:http://www.i18nguy.com/markup/metatags.html
META标记用于描述不包含在标准HTML里的一些文档信息。基于这一基
础上又开发出一些其它的有用功能,下面我挑选几种功能和大家说一下:
1、如何让搜索引擎搜索到你的页面
<META NAME=\"keywords CONTENT=\"这里写关键字\">
<META NAME=\"description\" CONTENT=\"有关你页面的描述\">
本页的关键字和描述。在页面里加上这些定义后,一些搜索引擎就能
够让读者根据这些关键字查找到你的主页,了解你的主页内容。多个关键
字之间用逗号分隔开,很多国外的网站都很重视这一功能,往往他们的关
键字会占据一半的页面。
2、定时跳转
<META HTTP-EQUIV=\"refresh\" CONTENT=\"10\" URL=\"新页面\">
浏览器将在10秒后,自动转到你指定的新页面。你可以利用这个功能,
制作一个封面,在若干时间后,自动带读者来到你的目录页。如果URL项
没有,浏览器就是刷新本页。这就实现了WWW聊天室定期刷新的特性。
础上又开发出一些其它的有用功能,下面我挑选几种功能和大家说一下:
1、如何让搜索引擎搜索到你的页面
<META NAME=\"keywords CONTENT=\"这里写关键字\">
<META NAME=\"description\" CONTENT=\"有关你页面的描述\">
本页的关键字和描述。在页面里加上这些定义后,一些搜索引擎就能
够让读者根据这些关键字查找到你的主页,了解你的主页内容。多个关键
字之间用逗号分隔开,很多国外的网站都很重视这一功能,往往他们的关
键字会占据一半的页面。
2、定时跳转
<META HTTP-EQUIV=\"refresh\" CONTENT=\"10\" URL=\"新页面\">
浏览器将在10秒后,自动转到你指定的新页面。你可以利用这个功能,
制作一个封面,在若干时间后,自动带读者来到你的目录页。如果URL项
没有,浏览器就是刷新本页。这就实现了WWW聊天室定期刷新的特性。
» 阅读全文




