1

My doubt is how to open a dialog box(using html/php) to the user so that he can decide where the txt file (which will be created by the php fwrite) will be recorded and under what name.

update1:

he page will get checkboxes with values, and i want the user to be able to give a directory and a nameOfFile to the php script so that the file will be created in that directory with that name, but i want something like a dialog box to user indicate where he decides that

1 Answer 1

1

PHP cannot write files on a clients system (PHP is a server side language).

I'm unaware of a save dialog functionality in html/javascript where the user could select a destination and a file will then download to that functionality.

Sign up to request clarification or add additional context in comments.

2 Comments

The page will get checkboxes with values, and i want the user to be able to give a directory and a nameOfFile to the php script so that the file will be created in that directory with that name, but i want something like a dialog box to user indicate where he decides that.
@MichaelS - Please read the answer carefully and make sure you understand it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.