Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 November 10th, 2004, 10:41 AM
Authorized User
 
Join Date: Nov 2004
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hidden form value

Hi

I want to know how to change the value of a hidden INPUT.

In example:

          <INPUT TYPE='HIDDEN' NAME='test' VALUE="something">

   I want to keep a default value like "something" but I also want to be able to change it's value but as it is hidden I don't know how to do that.

In fact it's a kind of bypass because what I really want is to know when the user press the RESET button, so if there is an other way let me know.

Thank you very much

Johnjohn


 
Old November 10th, 2004, 12:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi John,

You try to access that with Javascript.

document.FORM_NAME.test.value = 'anything'

If you wanted to assign that value on click of some button or any event, call this within that function/event.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old November 10th, 2004, 01:00 PM
Authorized User
 
Join Date: Nov 2004
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much





Similar Threads
Thread Thread Starter Forum Replies Last Post
access hidden form value with Mech - Mechanize crmpicco Perl 1 May 29th, 2011 08:42 AM
Content hidden until... rsearing CSS Cascading Style Sheets 3 July 11th, 2007 09:23 AM
How to modify hidden value? Edward King Javascript 2 January 21st, 2006 05:44 AM
Convert all items in _POST to hidden form faqbch99 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 February 16th, 2005 07:18 PM
CH3, pg 96 Hidden Form Fields wadesmart BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 19 October 28th, 2003 03:18 PM





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