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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Static Variables? 1

Status
Not open for further replies.

glwong

Programmer
Joined
Jul 13, 2001
Messages
15
Location
US
glwong (Programmer) Mar 24, 2004
Hi, I'm not sure if this is the right forum but I am new to ASP and VBScript, I am trying to create a form table that allows the user to add rows dynamically to it but I can't seem to get the variable to work correctly, it keeps reseting to the input field. I, in essence need the equivalent of a static variable. Thanks in advanced for your time. Here's some of the code I've been working on:
Form.asp

if (Request("totalRows") < 5) then
rows = 5
else
rows=Request("totalRows")
end if

for i=1 to rows
......create rows in table
next

x = i + Request("numRows")
Response.write("Add rows &nbsp;&nbsp;<input name=numRows value="""&Request("numRows")&""" onChange=""document.location='
 
And what about Session object ?

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top