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 23rd, 2005, 06:27 AM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing a value from 1 page to another

Hi Guys,

I'm having problems with trying to get a form to auto submit as well as trying to get a value passed into a field for that form to submit.

The value wont change so I was wondering if I could hard code it into the hyperlink ?? and what the code would look like, I had.

<a href="blah.htm?password> thats supposed to submit it into the input field on the form for the next page.

The 2nd part is getting the form to auto submit - heres my code.. aint working, any suggestions would be great:

Password : <input name="password" size=56 type=input>

<input type="hidden" name="submit" value="submit" OnLoad="decodeit()"

I'm new to this so i've just been trying pieces of code.
The idea is the password is coded into a link on a protected page, the link is to a file for download, if you click the link it automatically checks the login from the link and gives you the download... this is to stop direct links from chewing up my bandwidth. If my host had apache servers I would use .htaccess , but they dont..

Any help would be great thanks.

 
Old March 23rd, 2005, 06:58 AM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Its ok I think I got it, I just used the OnLoad command and called the script.

It seems to take the ?password=pass now.

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing objects between One Page to next page muralidharan.d ASP.NET 1.0 and 1.1 Basics 2 July 3rd, 2007 07:48 PM
passing argument to a page in c# kawalsingh28 ASP.NET 1.0 and 1.1 Professional 3 October 16th, 2006 07:02 AM
Passing parameters to a new page... gbianchi ASP.NET 1.0 and 1.1 Basics 1 March 8th, 2006 03:02 PM





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