Question:

JAVASCRIPT: reading from a selected file

by  |  earlier

0 LIKES UnLike

HI All!

I want to add the feature of selecting some text from a local file in my website. like those where on a file browse button, you can select a local file & upload its contents on to a textbox or a variable. The contents of the file(which would be an array of some ID's) would be used further to form queries.

I have put the file type button on my page but dont know how to read the contents of the selected file into a variable

Can anybody helop on this. If possible give some code.

Thanks in advance

 Tags:

   Report

1 ANSWERS


  1. you ca NOT use java script to access files on the server.

    use ASP or PHP instead.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.