Quick Programming Help - Saving Input To File

thefreshmaker

Registered Member
Joined
Feb 18, 2010
Messages
97
Reaction score
1
Hey I have a website perfectballhandling.com and I want the user to be able to press the get updates button enter their email and it saves to mail.php on my server. can you tell me what i'm doing wrong?
 
Well for a start what you're doing wrong is posting this in white hat SEO rather than in the programming section. You can find this stuff out easily with a search engine.
 
i didnt no there was a programming section
 
Last edited:
1) Catch the submitted email
http://php.net/manual/en/reserved.variables.get.php

2) Open your file in append mode
http://php.net/manual/en/function.fopen.php

3) Write content to file
http://php.net/manual/en/function.fwrite.php

4) Close the file handle (important on a busy server, or you'll hit your server's open file limit)
http://php.net/manual/en/function.fclose.php
 
Back
Top