<?php
$db = new PDO("mysql:host=sql313.epizy.com;dbname=uyelik;charset=utf8", "root", "");
$rfusername = $_POST['username'];
$rfpassword = $_POST['passwordd'];
$rfcustom1 = $_POST['custom1'];
if (!$rfusername || !$rfpassword || !$rfcustom1) {
die("lütfen boş alan bırakmayınız.");
}
$ekle = $db->prepare("INSERT INTO kullanicilar SET username = ?, passwordd = ?, custom1 = ?");
$ekle->execute([$rfusername, $rfpassword, $rfcustom1]);
if ($ekle) {
header("Location: index.html");
die();
}else {
header("Location: signup.html");
die();
}