Skip to content

Commit

Permalink
Update process_signup.php
Browse files Browse the repository at this point in the history
just a PHP update
  • Loading branch information
enessmr authored Sep 4, 2024
1 parent 5853da6 commit 9a3d50c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions files/process_signup.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
<?php

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// POST ile gelen istekleri işleyin
$email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL);
// Devam edin...
} else {
// Eğer POST dışındaki bir yöntemle istek yapılırsa
header('HTTP/1.1 405 Method Not Allowed');
echo '405 Method Not Allowed';
exit;
}

// Veritabanı bağlantısı
$pdo = new PDO('mysql:host=localhost;dbname=your_database', 'username', 'password');

Expand Down

0 comments on commit 9a3d50c

Please sign in to comment.