提交表单后获取的数据出现乱码如何解决?
代码如下:test1.asp<tablewidth="300"><formname="ad"method="post"action=""><tr><td><inputna...
代码如下:
test1.asp
<table width="300">
<form name="ad" method="post" action="">
<tr>
<td><input name="filepath" size="30"></td>
</tr>
</from>
<tr>
<td><iframe src="test2.asp"></iframe></td>
<tr>
</table>
test2.asp
<script language="javascript">
function fill(fpath){
paremt.ad.filepath.value=fpath;
}
</script>
<table width="300">
<form name="test" method="post" action="">
<tr>
<td>
<%
filepath="\files\pic\1.jpg"
response.write filepath
%>
<input name="filepath" type="hidden" value="<%=filepath%>">
<input name="submit" type="button" value="提交" onclick="javascript:fill(<%=filepath%>);">
</td>
</tr>
</form>
</table> 展开
test1.asp
<table width="300">
<form name="ad" method="post" action="">
<tr>
<td><input name="filepath" size="30"></td>
</tr>
</from>
<tr>
<td><iframe src="test2.asp"></iframe></td>
<tr>
</table>
test2.asp
<script language="javascript">
function fill(fpath){
paremt.ad.filepath.value=fpath;
}
</script>
<table width="300">
<form name="test" method="post" action="">
<tr>
<td>
<%
filepath="\files\pic\1.jpg"
response.write filepath
%>
<input name="filepath" type="hidden" value="<%=filepath%>">
<input name="submit" type="button" value="提交" onclick="javascript:fill(<%=filepath%>);">
</td>
</tr>
</form>
</table> 展开
1个回答
2006-05-31
展开全部
将字符串中的"\"转换成"/"即可
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询