<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$mysqlsunucu = "xxxxxx";
$mysqlkullanici = "xxxxxxx";
$mysqlsifre = "xxxxxxx";
$db = new PDO("mysql:host=$mysqlsunucu;dbname=epiz_28637796_uyelik;charset=utf8", $mysqlkullanici, $mysqlsifre);
$rfusername = $_POST['username'];
$rfpassword = $_POST['passwordd'];
$rfcustom1 = $_POST['custom1'];
$ekle = $db->prepare("INSERT INTO kullanicilar (username, passwordd, custom1) VALUES (uye_username,uye_password,uye_custom1)");
$ekle->execute(array($rfusername, $rfpassword, $rfcustom1));
if ($ekle) {
header("Location: index.html?=durum=kayitbasarili");
}
else {
header("Location: signup.html?=durum=kayitbasarisiz");
}
?>