Beginner's Filehandling problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • itmm
    New Member
    • Oct 2008
    • 4

    #1

    Beginner's Filehandling problem

    I have a HTML file with a TEXTAREA and a SUBMIT button.

    I want to APPEND the text to a textfile, which I can inspect at a later date.

    Can anyone help with this?
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    open the file for saving in the append mode. Also, be sure to sanitize or untaint your data before writing it to file. What have you tried?

    --Kevin

    Comment

    • itmm
      New Member
      • Oct 2008
      • 4

      #3
      Hi Kevin,

      I'm VERY new at this. I'm reasonably adept at VBA programming, but this is completely new to me.

      I basically need the code. I understand the concepts.

      Here's the URL of the page in question.
      http://itmm.dk/inputtest.html

      If the user ckicks the SEND button, the text has to be appended to a text file

      Hope you can help

      Trevor

      Comment

      • Icecrack
        Recognized Expert New Member
        • Sep 2008
        • 174

        #4
        Originally posted by itmm
        Hi Kevin,

        I'm VERY new at this. I'm reasonably adept at VBA programming, but this is completely new to me.

        I basically need the code. I understand the concepts.

        Here's the URL of the page in question.
        http://itmm.dk/inputtest.html

        If the user ckicks the SEND button, the text has to be appended to a text file

        Hope you can help

        Trevor

        Trevor well i think that if you want that code you should offer money and place it in the jobs Section, put a clear title of perl programmer needed, as people get paid for what you would like them to do.

        now you can attempt this your self and we will be glad to help you.

        Comment

        • Icecrack
          Recognized Expert New Member
          • Sep 2008
          • 174

          #5
          Also Take a look at
          http://affy.blogspot.c om/p5be/ch01.htm

          for a good perl resource.

          look up CGI, USING FILES, and form processing.

          Comment

          • itmm
            New Member
            • Oct 2008
            • 4

            #6
            Originally posted by Icecrack
            Trevor well i think that if you want that code you should offer money and place it in the jobs Section, put a clear title of perl programmer needed, as people get paid for what you would like them to do.

            now you can attempt this your self and we will be glad to help you.
            Problem solved. I found some scraps of code and some tips on tutorial pages and was able to patch it all together and it works.

            Thanks for your response.

            (I admit it's a bit cheeky expecting to get someone to spend their valuable time doing my coding.)

            Comment

            • KevinADC
              Recognized Expert Specialist
              • Jan 2007
              • 4092

              #7
              Originally posted by itmm
              Problem solved. I found some scraps of code and some tips on tutorial pages and was able to patch it all together and it works.

              Thanks for your response.

              (I admit it's a bit cheeky expecting to get someone to spend their valuable time doing my coding.)
              I hope you found some secure code to do that.

              Comment

              • itmm
                New Member
                • Oct 2008
                • 4

                #8
                Originally posted by KevinADC
                I hope you found some secure code to do that.
                I've found http://affy.blogspot.c om/p5be/ch00.htm & I'm working my way through it.

                Comment

                • KevinADC
                  Recognized Expert Specialist
                  • Jan 2007
                  • 4092

                  #9
                  OK, post your code if you get stuck or need some suggestions or further advise.

                  Comment

                  Working...