Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (ISSET($_POST['username'])){
- $username = $_POST['username'];
- $password = $_POST['password'];
- $repass = $_POST['repass'];
- $email = $_POST['email'];
- $sex = $_POST['sex'];
- $lookingfor = $_POST['lookingfor'];
- $lookfor = $_POST['lookfor'];
- $day = $_POST['day'];
- $month = $_POST['month'];
- $year = $_POST['year'];
- $country = $_POST['country'];
- $zipcode = $_POST['zipcode'];
- $mobile = $_POST['mobile'];
- $birth = $day + $month + $year;
- $birthdate = $birth * 1000;
- $newuser = "INSERT INTO users (username, userpass, email, sex, lookingfor, forwhat, birthdate, country, zipcode, mobilephone)
- VALUES ('$username', '$userpass', '$email', $sex, '$lookingfor', '$lookfor', $birthdate, '$country', $zipcode, $mobile)";
- $result = mysql_query($newuser, $conn);
- if($result){
- header('Location: index.php');
- echo "Success!";
- }else{
- echo "We got a problem!";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement