如何将值从一页传递到另一页? [英] how to pass values from one page to other?

查看:83
本文介绍了如何将值从一页传递到另一页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面作为视图类别,并且在该页面上有类别名称,图像名称和url显示了该视图类别页面,还有一个编辑按钮,现在我要编辑我需要的类别名称,图像名称和url将这三个值传递给另一个页面作为编辑页面, 类别名称和网址,请参见以下代码: 首先,我想将图像名称传递给editpage,因为我尝试过:

i have page as view category and on that page there is category name,image name and url get display an that view category page there is also edit button now i want to edit category name,image name and url for that i need to pass that three values to another page as editpage, category name and url read in following code: firstly i want to pass image name to editpage for i tried like:

<form Name="frmEdit" method="post" action="<%=Request.ServerVariables("PATH_INFO")%>">
    <!--for edit-->
    <td align="left" valign="top" class="text">
        <input type="hidden" name="fileId1" value=.<%=mid(FileName.Path,instrrev(FileName.Path,"\")+1)%>">
        <div class="btn"><input  type="submit" name="AskEdit" value="Edit" style="margin-bottom:-10px"></div>
    </td>
</form>

并传递值:

if Request.Form("AskEdit") = "Edit" then
    response.Redirect("edit_category.asp?fid=" & fileId1)
end if

但是此响应我出错了.Redirect("edit_category.asp?fid ="& FieldID行

but i getting error for this response.Redirect("edit_category.asp?fid=" & FieldID line

所以请帮助我

推荐答案

尝试一下:

if Request.Form("AskEdit") = "Edit" then
    response.Redirect("edit_category.asp?fid=" & request.form("fileId1"))
end if

这篇关于如何将值从一页传递到另一页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆