Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
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 29th, 2005, 08:08 PM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to set the values of request.form(variable) to

I have following two hidden variables-- addlist and rmvlist which get populated by clientside javascript and on page load i retrieve them as follows
    addlist = Request.Form("addlist")
    rmvlist = Request.Form("rmvlist")
after doing some operations i want to set them to bet set to empty or null.


how can i do that ????


Also i have a function which is called when
Request.Form("btnAddRmv") is true ( where btnAddRmv is a button ) i am doing this becuase i want the function to be called only when the button is clicked and after validations using javascript .
now the problem i am facing is that if i refresh the page after the first succssful run even thought the button is not pressed but it calls the function.
any suggestions how can i avoid that.

thanks

-king
 
Old March 30th, 2005, 02:34 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

To avoid the function to be called put one hidden variable and set some flag when button is pressed and after the operation set some other flag.This way you can avoid.






Similar Threads
Thread Thread Starter Forum Replies Last Post
php take get variable and dynamically set values crmpicco PHP How-To 1 October 22nd, 2007 07:19 PM
Request.Form / Request.QueryString Toran Classic ASP Databases 4 January 17th, 2007 02:23 PM
set ASP variable values inside Javascript crmpicco HTML Code Clinic 1 March 9th, 2005 12:32 PM
request values into variable from another form ? rehana Beginning PHP 5 December 16th, 2003 02:34 PM





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