Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 May 4th, 2005, 10:04 AM
Friend of Wrox
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default sending variable value to page when submitted

i have a asp page that submits to itself when a submit button is pressed:

<input type="submit" name="Submit" value="Submit" onmouseover="style.cursor='hand'" onClick="show_contract_id='no'">

is there a way i can send a variable value to the page so that when it is reloaded and shown again i can only show item as per the variable's value?

i.e if show_contract_id='no'then dont show contract
    if show_contract_id='yes'then show contract

Ayrshire Minis - a Mini E-Community
Old May 4th, 2005, 07:23 PM
Friend of Wrox
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

;;;is there a way i can send a variable value to the page so that when it is reloaded
do you mean reloaded (I think of refreshed when you say reloaded) or do you mean when the form is submitted?

If the later you can use:
1..form variables - on submit pass a value into a hidden form variable

2..queryStrings - append to the action part of the <form> tag

Wind is your friend

Similar Threads
Thread Thread Starter Forum Replies Last Post
The page cannot be refreshed without sending ... toshi Javascript 2 September 26th, 2006 03:00 AM
sending data to page two vkshrestha ASP.NET 1.0 and 1.1 Professional 8 May 18th, 2006 06:01 AM
Page gets submitted automatically! recruitsen Classic ASP Basics 1 September 22nd, 2004 05:15 PM
Sending datas from the first page to the next ones mcber35 Access VBA 2 July 28th, 2004 11:14 AM
Sending Date variable into Oracle Database Judex Java Databases 1 September 20th, 2003 05:54 PM

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