Page 1 of 1

open file with an "open dialoug", display in texta

Posted: Sun Jun 29, 2003 6:38 am
by morla
hmmm, the subject line is a bit small.....

hy folks,
i have a little problem with opening a file.

my aim is to develop an online text-editor, which should be a little "user friendly". *grr*

now my question is how can i create a button which opens the browsers "open file" dialoug, where i can select a file. (may be a funktion which sets a variable to the selected file path?!?)

and then i would like to read out the file content and display it in an textarea...(but this is not a problem)

same thin with a save dialog....

is there somthin in php or html implemented?
for little help or a point in the right direction, i would be very thankfull.

morla

Posted: Sun Jun 29, 2003 9:40 am
by delorian
As far I can understand what you're up to, I think you should read about "file uploading" in php manual and here in many, many topics :) Before you can edit any file using a PHP you must upload it on a server (even temporarily) the same with "save" option.

BTW:
morla wrote:now my question is how can i create a button which opens the browsers "open file" dialoug
It is a "FILE" input type in HTML, like this:

Code: Select all

<input type="FILE">