Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 24th, 2005, 07:50 AM
Authorized User
 
Join Date: Feb 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kumarop
Default How to bring value on other page.

Dear All,
    Below is a form,When submitted,I want to send value of "yourfile"on email.asp page. As per requirement I canot change " action=<%=request.servervariables("script_name")%> >" I have tried to use hidden but failed ,can u help me to keep bring this value on email.asp page.

Purpose.
when I press submit button file is being loaded on webserver.
then I came back on email.asp by link.
here I want to have loaeded file's name.

What the Best method,for sending one value of a form on several pages ......

Regards



<%@ Language=VBScript %>

<html>
<head>
</head>
<body>
<table cellpadding="6" cellspacing="1" border="0" width="70%" align="center">
<form method=post
      enctype="multipart/form-data"
      action=<%=request.servervariables("script_name")%> >
<tr bgcolor="#eeeeee">
<td align = center width = "100%"><strong>Your File:</strong><input type=file name=YourFile><input type=submit name=submit value="Upload"></td></tr>
<tr bgcolor = "#eeeeee">
<td align = Center><a href=email.asp>Back to Email page</a></td></tr>
</form>

<form method=post action = "email.asp">
<input type="hidden" name=filename value=<%Response.Write("YourFile")%>>

</form>


om prakash kumar
__________________
om prakash kumar
 
Old March 24th, 2005, 04:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Put the hidden field inside the first form, as it needs to be apart of the form that is submitting. Or in the action, add a querystring value (add to end "?filename=YourFile"). Request.ServerVariables("script_name") is the path to the current file, so why add it in the action? If no action is provided, it should redirect to the same page.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Bring the rest of the columns to the next page vijaymartin Crystal Reports 0 February 17th, 2007 01:20 AM
Bring a field to a form! Vision G Access 11 June 9th, 2006 08:37 AM
bring to front dkr72 Excel VBA 1 December 2nd, 2004 05:50 AM
question asked(bring flash page to the top) ExxWhyZee Flash (all versions) 1 April 13th, 2004 12:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.