Ask a Question related to ASP Database, Design and Development.
-
Jon D #1
Help needed with ASP form browse for file, create link to file and insert in access database
I have a form where a user enters their name, date etc.
i also want them to be able to click on a browse button and select a
file which will then appear in a textbox. when they press submit i
want the file name and path to be put into the database. e.g.
"C:\windows\work\work.doc". Basically I don't want to UPLOAD the file
just enable the user to browse to it and send the filename and path to
the database.
Any help would be appreciated,
thanks
Jon D Guest
-
read text file insert into database
Hi, I have a tab delimited large text file in my server. I am trying to create a .CFM file to read the text file and insert into the database. ... -
Bug: Insert Link (Browse to Web Page) Error
I was demonstrating Contribute to a client this morning and discovered that the "Browse to Web Page" feature does not work. Attempting to link to... -
Create a Browse to File Button
I cannot for the life of me figure out how to do this. I upload a lot of images and it would be nice if I had that handy browse to file button to... -
insert flat file to database
Hi, I need to import data from a flat file to the Oracle database. The file is not a csv file. The file is not a comma delimited file. It is a... -
Insert full path on browse file?
Don't suppose you could post that code here? :) -
Bullschmidt #2
Re: Help needed with ASP form browse for file, create link to file and insert in access database
<<
I have a form where a user enters their name, date etc.
i also want them to be able to click on a browse button and select a
file which will then appear in a textbox. when they press submit i want
the file name and path to be put into the database. e.g.
"C:\windows\work\work.doc". Basically I don't want to UPLOAD the file
just enable the user to browse to it and send the filename and path to
the database.Here is a test file that works for me:>>
<html>
<body>
<%
' If there was a post.
If Request.Form.Count > 0 Then
Response.Write "LName = " & Request.Form("LName") & "<br>"
Response.Write "FileLocationOnClientPC = " &
Request.Form("FileLocationOnClientPC") & "<br>"
Else
%>
<form id="frmMain" name="frmMain" action="<%=
Request.ServerVariables("SCRIPT_NAME") %>" method="post">
LName: <input type="text" name="LName"><br>
FileLocationOnClientPC: <input type="file"
name="FileLocationOnClientPC"><br>
<input type="submit" name="btnSubmit" value="Submit"><br>
<%
End If
%>
</form>
</body>
</html>
Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
[url]http://www.Bullschmidt.com[/url]
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest



Reply With Quote

