Results 1 to 3 of 3

Thread: Making a text file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    East Ballina,NSW,Australia
    Posts
    121

    Question

    Hi All,

    I need to create a simple web form that can be ran in most web browsers.
    What it has to do is write a simple text file to an sub directory call "txt" on the server where it's hosted.
    It has two text boxes one text box will allow you to make a name for the file and the other text box will be the actual text in the file.

    How would I got about doing this, I'm a begginer in this area and any help would be greatly appreciated!
    A Javascript solution would be preffered but anything similar will do.

    Thanks!

    Best Regards,

    Ben Smith.

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    What you need to do is write a script/program that runs on the server that will handle the data incoming from the form. You can use JScript or VBScript if your server is running ASP, usually available on a Windows server. If your server is running Unix, you'll have to use PHP or CGI with Perl depending on what's installed. Allowing the user to pick the name of the file can be a security risk on Unix - it's possible to add shell commands to the end of the filename.

    Josh

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    East Ballina,NSW,Australia
    Posts
    121

    Talking Ok

    So what your saying is I should make a basic web form and when you click on submit/send it activates the javascript code which sez where the text file should go etc?

    If so, where should I start?

    Thanks.

    Ben

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width