Jump to content

Shaon

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Posts posted by Shaon

  1. [!--quoteo(post=384082:date=Jun 15 2006, 12:49 AM:name=perezf)--][div class=\'quotetop\']QUOTE(perezf @ Jun 15 2006, 12:49 AM) [snapback]384082[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    i need help desperately
    I need a way where i can have a user type information into a form and submit it
    after it is submited it should be saved to the server and ready to see
    writing to a txt file
    can someone help
    [/quote]

    Hi,
    Try with this
    [code]
    function savefile($filename,$content)
    {
        if (!$handle = fopen($filename, 'w')) {
             echo "Cannot open file ($filename)";
             exit;
        }

        if (fwrite($handle, $content) === FALSE) {
            echo "Cannot write to file ($filename)";
            exit;
        }


        fclose($handle);
        return true;
    }
    [/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.