Web Analytics Made Easy -
StatCounter Form processing - CodingForum

Announcement

Collapse
No announcement yet.

Form processing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Form processing

    I have a scritp which writes the data from a textarea to a .txt file.

    The problem is that when I submit the file it changes, I don't know why:

    PHP Code:
    <textarea name="content"></textarea>

    ~~~~

    $content          trim$_REQUEST['content'] );
    echo 
    $content// this is just to check

    ~~~

    fwrite($handle$contentstrlen($content)); 

    That is my code, now when I (for ex.) enter today's kool, It will output today/'s kool, and some more bounch of things

    now, how do i fix this?? thanks a lot
    MeGa MaX
    Be the Best, but don't Believe it.

  • #2
    You'll need to use the stripslashes() function

    Comment


    • #3
      Wow, thanks a lot Nightfire
      MeGa MaX
      Be the Best, but don't Believe it.

      Comment

      Working...
      X