Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with retreiving field value

Status
Not open for further replies.

cat5ive

MIS
Joined
Dec 3, 2004
Messages
184
Location
US
Hi,

Here is my function. When a submit button has been clicked it write the value to a hidden field in my form. Later I want to retreive this value. Below is my function.
Code:
function myfunction(value) { 
			if(value.length<=0)
				return false;
			else
			  {
		[COLOR=red]
// there is value in here when I debug	       
// document.write(value);[/color]
			   	document.f1.varnewdue.value = value;								
				return true;
			  }

		}
Here is part of my form.
Code:
<table cellspacing="0" cellpadding="0" border="0" bgcolor="#edecd7" width="90%">
   <form action="mv_invholdlist.asp?" name="f1" method="post">
    <input type="Hidden" name="pagesize" value="<%=pagesize%>" >	[COLOR=red]
	<input type="Hidden" name="varnewdue">[/color]
	<tr>
Here is where I retreive the value. I did the debug in here. 'strnewdue' is blanks.
Code:
strnewdue = trim(request("varnewdue"))[COLOR=red]
// response.write(strnewdue)[/color]
The function and the form are in the same asp. The statement to retreive is in another asp which I use #include to include it on the first asp.
Please help!!
Thanks in advance
 
Please ignore. I found a problem.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top