<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post/343/</link>
<title><![CDATA[如何使表达提交后,点回退/返回,保留表单数据?]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Sun, 02 Sep 2007 02:29:26 +0000</pubDate> 
<guid>http://www.dzhope.com/post/343/</guid> 
<description>
<![CDATA[ 
	如果a页是一个表单，提交时因某种原因转至出错页面b，如何在b中返回已填写数据的表单a（数据不变）？ &nbsp;<br/><br/> <br/>表单a，要保留的都使用class=saveHistory &nbsp;<br/><br/><div class="code"><br/><br/>&lt;HTML&gt; &nbsp;<br/> <br/>&lt;HEAD&gt; &nbsp;<br/>&lt;META &nbsp;NAME=&quot;save&quot; &nbsp;CONTENT=&quot;history&quot;&gt; &nbsp;<br/>&lt;STYLE&gt; &nbsp;<br/> &nbsp; &nbsp; .saveHistory &nbsp;&#123;behavior:url(#default#savehistory);&#125; &nbsp;<br/>&lt;/STYLE&gt; &nbsp;<br/>&lt;/HEAD&gt; &nbsp;<br/>&lt;BODY&gt; &nbsp;<br/>&lt;FORM &nbsp;name=a&gt; &nbsp;<br/>&lt;INPUT &nbsp;class=saveHistory &nbsp;type=text &nbsp;id=oPersistInput&gt; &nbsp;<br/>&lt;/FORM&gt; &nbsp;<br/>&lt;/BODY&gt; &nbsp;<br/>&lt;/HTML&gt; &nbsp;<br/><br/><br/></div><br/><br/><br/>注意: meta中必须设置 name=save &nbsp;content=history<br/> <br/>上面的代码确保表单a（数据不变），后退功能在出错页面b可以使用history.back()或history.go(-1)都可以实现，例如： <br/><div class="code"><br/> <br/>&lt;input &nbsp;type=button &nbsp;value=Back &nbsp;onclick=history.back()&gt; &nbsp;<br/>&lt;input &nbsp;type=button &nbsp;value=Back &nbsp;onclick=history.go(-1)&gt;<br/> <br/></div><br/><br/>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post/343/#blogcomment2928</link>
<title><![CDATA[[评论] 如何使表达提交后,点回退/返回,保留表单数据?]]></title> 
<author>hehe &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 22 Jan 2008 09:02:12 +0000</pubDate> 
<guid>http://www.dzhope.com/post/343/#blogcomment2928</guid> 
<description>
<![CDATA[ 
	我觉得这在php中已经是一个很经典的问题了。<br/>try:<br/>1.在head标记之间加上：<br/>&lt;style&gt;<br/>input&#123;behavior:url(#default#savehistory);&#125;<br/>/*这里只是针对input控件，其他的也可以相应加上*/<br/>&lt;/style&gt;<br/>&lt;meta name=&quot;save&quot; content=&quot;history&quot;&gt;<br/>2.更改php.ini.<br/>session.cache_limiter=private<br/>第一种方法不方便，第二种又会带来其他的毛病,你试一试就知道了<br/>继续寻找更简单方便的办法........
]]>
</description>
</item>
</channel>
</rss>