Created
March 2, 2015 14:36
-
-
Save asilbalaban/e62dce2f1c3c740cc614 to your computer and use it in GitHub Desktop.
dandik e-bulten kayit php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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/\'">'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gönderilen mail adresinin bulten.txt kaydedilmesi gerekiyor sanırım deniyorum ama kayıt edilen bişey yok