|
 |
access_asp thread: Getting file name from File Input Box
Message #1 by "Ashley Young" <ashley.young@c...> on Thu, 25 Jul 2002 18:02:37
|
|
I'm sure this is a simple thing, but I seem to be having trouble. I want to
get the value from a file input box and store that entire value into an
access database. I've tried getting the value with request.form("filename")
and request("filename"). I do not get an asp error message, but the value
shows up as empty, thereby not allowing me to store it in the access database.
I've even tried transferring the value of the input file box to a regular
text box and getting the value from there, but I still get no value picked
up by asp. Am I doing something wrong?
Message #2 by "Zimmer Computer Consulting" <zee@t...> on Thu, 25 Jul 2002 14:08:51 -0700
|
|
You could post your code for easier examination.
Check to make sure that your input control is contained within the same
<form method='POST'> and </form> tags as the submit button. If it outside
of the form tags or within a different set of form tags, it won't be sent.
Also, check to make sure that you are using the POST method (and not the GET
method) in the <form method='POST'> tag.
(If you use the GET method, you can use Request.QueryString instead of
Request.Form).
I hope this helps.
-- Z
----- Original Message -----
From: Ashley Young <ashley.young@c...>
To: Access ASP <access_asp@p...>
Sent: Thursday, July 25, 2002 6:02 PM
Subject: [access_asp] Getting file name from File Input Box
> I'm sure this is a simple thing, but I seem to be having trouble. I want
to
> get the value from a file input box and store that entire value into an
> access database. I've tried getting the value with
request.form("filename")
> and request("filename"). I do not get an asp error message, but the value
> shows up as empty, thereby not allowing me to store it in the access
database.
> I've even tried transferring the value of the input file box to a regular
> text box and getting the value from there, but I still get no value picked
> up by asp. Am I doing something wrong?
|
|
 |