SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Just starting

  1. #1
    SitePoint Member valhalla's Avatar
    Join Date
    May 2003
    Location
    aj
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Just starting

    Creating texxt files from HTML forms

  2. #2
    SitePoint Zealot Saj's Avatar
    Join Date
    May 2003
    Location
    USA
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So...what do you need? Help writing them?

    PHP Code:
    $fp fopen("file.txt""w");
    fwrite($fp"Info to the new text file");
    fclose($fp); 

  3. #3
    SitePoint Member valhalla's Avatar
    Join Date
    May 2003
    Location
    aj
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    can i use varibles like this??
    $fopen("dat.txt");
    $fappend("<br>");
    $fappend("first name: ");
    $fappend($firnam);
    $fappend("<br>");
    $fappend("Last Name: ");
    $fappend($lasnam);

    and the varibles are
    $firnam = "bob"
    $lasnam = "flog"
    and it would come out like this in the text file::::



    first name: bob
    Last Name: flog
    is this how it works???
    thanks for the help


Bookmarks

Posting Permissions

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