/    Sign up×
Community /Pin to ProfileBookmark

Write to txt file

hey everybody!

I’m really bad at PHP and I need a form and script that can write to a txt file

the file is slogin_users.txt and I need it to be like this:

[CODE]<form>
<input type=”text” name=”username”>
<input type=”text” name=”password”>
<input type=”button” value=” Register”>
</form>[/CODE]

Username=” Testuser”
Password=” Testpass”

And it would output like this in the txt file

testuser, testpass[COLOR=”Red”]<SPACE>[/COLOR]testuser2, testpass2 Ect…

Thanks

Fire Cat

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@Fire_CatauthorSep 05.2009 — 
testuser, testpass[COLOR="Red"]<SPACE>[/COLOR]testuser2, testpass2 Ect...
[/QUOTE]


The space must be a simple space, not the word SPACE
Copy linkTweet thisAlerts:
@SodbusterSep 05.2009 — Your best bet:

[LIST]
  • [*]Change the space to newline.

  • [*]Read up on fputcsv() and fgetcsv(), [COLOR="Blue"]etc[/COLOR].

  • [/LIST]
    ×

    Success!

    Help @Fire_Cat spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...