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 February 27th, 2005, 07:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default Request.Form on hyperlink?

I've created a form with hidden fields to pass data to another form. Moving between forms is accomplished via standard HTML hyperlinks (<a href>) which passes an additional querystring. The called page reads the querystring just fine, but seems unable to find values in any of the hidden fields even though I can see them within the FORM tags in the calling page source.

What do I need to do to get the called form to see the calling form's fields?
 
Old February 27th, 2005, 08:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

There are two main ways to share data between pages, the first is POST - a form with fields - the second is GET - using the QueryString. What you are trying to do is use them both at the same time.

See http://www.asp101.com/samples/getpost.asp for an example of each.
The Following User Says Thank You to Greg Griffiths For This Useful Post:
Ron Howerton (February 22nd, 2013)
 
Old February 28th, 2005, 06:59 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hello Ron Howerton,
I think you can get the value without using submit button or an image script
please use a button...a href won't work for this perpose...

surendran
(Anything is Possible)
The Following User Says Thank You to surendran For This Useful Post:
Ron Howerton (February 22nd, 2013)
 
Old February 28th, 2005, 10:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Well, I really wanted to use form fields, so I'd be happy to ditch the querystring if that would make this work. But I also need to use HTML links and not ASP buttons and it looks like links won't post form fields no matter what I need.

So I've implemented the necessary functionality using a querystring. It's not my solution of choice, resulting not only in excessively long querystrings that cannot be sent unbroken in email (an issue I will have to deal with next as a result), but also in longer HTML files (carrying multiple long links containing mostly redundant information), but there seems to be no avoiding this work around. The querystring gets through when the link is clicked and form fields do not. I can only hope it does not exceed the querystring limit of, as I understand it, 2K (in the MS world) or I'll have some other problem with deal with.

Thanks for your explanations.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Request.Form / Request.QueryString Toran Classic ASP Databases 4 January 17th, 2007 02:23 PM
request.form() lucian Dreamweaver (all versions) 1 November 7th, 2004 09:14 AM
request.qurystring vs. request.form Durwood Edwards Classic ASP Databases 3 June 18th, 2004 12:09 AM
request.querystring() , request.form() alyeng2000 ASP.NET 1.0 and 1.1 Basics 1 December 30th, 2003 12:07 AM





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