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

Getting value from textbox

Status
Not open for further replies.

princessk1

Programmer
Feb 28, 2002
74
CA
I am trying to get the value from a textbox in a function using VBScript. This is what I am trying:

document.formname.textboxname.value

The error I get is :
"Object doesn't support this object or method."

Any ideas?
Thanks
 
On your html form page set the form action to whatever.asp then in your whatever.asp page use this to get the value of that textbox

variable = Request.form("TextboxNameHere")

Hope that helps

AJ
 
That should work.

Maybe its because the object hasnt been created yet, iaw
your script might be firing to early, or it could be a
simple spelling mistake.

But what I think is that maybe you have confused your
VBScript (never use btw, its only supported by MSIE),
JavaScript.

I hope this helps, [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top