Skip to content

Instantly share code, notes, and snippets.

@asilbalaban
Created March 2, 2015 14:36
Show Gist options
  • Save asilbalaban/e62dce2f1c3c740cc614 to your computer and use it in GitHub Desktop.
Save asilbalaban/e62dce2f1c3c740cc614 to your computer and use it in GitHub Desktop.
dandik e-bulten kayit php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="register.php">
<input type="email" required name='EMAIL'>
<button>SEND</button>
</form>
</body>
</html>
<?php
$email = $_POST['EMAIL']."\n";
file_put_contents("bulten.txt", $email, FILE_APPEND);
echo '<script>alert("Elektronik posta adresiniz ba\u015Far\u0131yla kaydedildi. Te\u015Fekk\u00FCr ederiz.");</script>';
echo '<meta http-equiv="refresh" content="0;URL=\'http://www.example.com/\'">';
@mavikalemreklam
Copy link

gönderilen mail adresinin bulten.txt kaydedilmesi gerekiyor sanırım deniyorum ama kayıt edilen bişey yok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment