ryanfilard Posted June 24, 2011 Share Posted June 24, 2011 I have to create a script that writes a user's email to a .txt file. I am using the code below and it does not seem to be working. <?PHP //Data to write $newsletterinfo = $REQUEST['email']; //Open the file directory $fdir = fopen('newsletter.txt'); //Write user email fwrite($fdir, $newsletterinfo); //Close the connection fclose($fdir); ?> Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.