Notes
Notes - notes.io |
//Boş mu değil mi
if(!empty($_POST['mail'] AND $_POST['sifre']))
{
//veritabanı
$servername = "localhost";
$username = "ahyctr_admin";
$password = "ahmeteren78";
$dbname = "ahyctr_ozelsa";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Bağlantı Hatası: " . $conn->connect_error);
}
//veritabanından çek ve karşılaştır
$mail=$_POST['mail'];
$sifre=$_POST['sifre'];
$sql = "SELECT * FROM `notes-uyelik` WHERE mail='$mail' AND sifre='$sifre'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
$cookie_name = "isim";
$cookie_value = $row['isim'];
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day
$cookie_name = "mail";
$cookie_value = $mail;
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day
echo "Giriş Başarılı, Yönlendiriliyorsunuz..";
}
} else {
echo "Yanlış şifre veya eposta";
}
}
?>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<form class="w3-container w3-card-4" action="" method="post">
<h2 class="w3-text-blue">Giriş Yap</h2>
<p>Burdan giriş yapınız</p>
<p>
<label class="w3-text-blue"><b>Email</b></label>
<input class="w3-input w3-border" name="mail" type="text"></p>
<p>
<label class="w3-text-blue"><b>Şifre</b></label>
<input class="w3-input w3-border" name="sifre" type="password"></p>
<p>
<button class="w3-btn w3-blue">giris</button></p>
</form>
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team