Guest User

Untitled

a guest
Mar 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. $email = $_POST['Email_Address'];
  3. $full_name = $_POST['Full_Name'];
  4. $entry = $full_name;
  5. $entry .= ",";
  6. $entry .= $email;
  7. $file = fopen("contacts.csv","w");
  8. fputcsv($file,explode(',',$entry));
  9. fclose($file);
  10. ?>
  11.  
  12. <form method="post" action="php-forms/subscribeform.php">
  13. <input placeholder="Name" type="text" name="Full_Name" id="Full_Name" required />
  14. <input placeholder="Email" type="email" name="Email_Address" id="Email_Address" required />
  15. <input class="formBtn" type="submit" />
  16. <input class="formBtn" type="reset" />
  17. </form>
Add Comment
Please, Sign In to add comment