I've been stuck for a couple days connecting the registration looking through forums etc. No error seems to populate on the page, but when I take a look at phpMyAdmin it doesn't show the registration info inserted in the db.
I've editing the code to help cause I'm still coming up with the same issue, but many seem to be on the right track. I was using mysql and mysqli interchangeably. I looking in my dbconnect.php file and found the following which looks like I'll also need to change to make it uniform with the mysqli being displayed in other areas. On the right track, but not there yet.
I just found though that dbconnect.php is deploying the mysql version and not the mysql version any thoughts?
I just found though that dbconnect.php is deploying the mysql version and not the mysql version any thoughts?
Based on the starting responses I found that many we're helping me get on the right track...here are the other correlating files since the general theme is I am interchanging mysql and mysqli. Parts of it seemed to work initially but now it's all coming apart so if anyone can help me put it all back together again appreciate it. I'm still having no response from posting to the database which is why I'm making the edits.
Just so I'm showing all I have in this process....I'm also putting in my login.php file so hopefully I can get this all resolved.
login.php
<!DOCTYPE html>
<!--[if IE 9 ]><html class="ie9"><![endif]-->
<head>
<meta name="viewport" content="width=device-width, initial- scale=1.0, maximum-scale=1.0" />
<meta name="format-detection" content="telephone=no">
<meta charset="UTF-8">
<meta name="description" content="Violate Responsive Admin Template">
<meta name="keywords" content="Super Admin, Admin, Template, Bootstrap">
<title>Super Admin Responsive Template</title>
<!-- CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/form.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/generics.css" rel="stylesheet">
</head>
<body id="skin-blur-violate">
<section id="login">
<header>
<h1>SUPER ADMIN</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eu risus. Curabitur commodo lorem fringilla enim feugiat commodo sed ac lacus.</p>
</header>
<div class="clearfix"></div>
<!-- Login -->
<?php require_once("index.php"); ?>
<form class="box tile animated active" id="box-login">
<h2 class="m-t-0 m-b-15">Login</h2>
<input type="text" class="login-control m-b-10" placeholder="Username or Email Address">
<input type="password" class="login-control" placeholder="Password">
<div class="checkbox m-b-20">
<label>
<input type="checkbox">
Remember Me
</label>
</div>
<button type="submit" name="btn-login" class="btn btn-sm m-r-5">Sign In</button>
<small>
<a href="registration.php">Don't have an Account?</a> or
<a class="box-switcher" data-switch="box-reset" href="">Forgot Password?</a>
</small>
</form>
<!-- Forgot Password -->
<form class="box animated tile" id="box-reset">
<h2 class="m-t-0 m-b-15">Reset Password</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eu risus. Curabitur commodo lorem fringilla enim feugiat commodo sed ac lacus.</p>
<input type="email" class="login-control m-b-20" placeholder="Email Address">
<button class="btn btn-sm m-r-5">Reset Password</button>
<small><a class="box-switcher" data-switch="box-login" href="">Already have an Account?</a></small>
</form>
</section>
<!-- Javascript Libraries -->
<!-- jQuery -->
<script src="js/jquery.min.js"></script> <!-- jQuery Library -->
<!-- Bootstrap -->
<script src="js/bootstrap.min.js"></script>
<!-- Form Related -->
<script src="js/icheck.js"></script> <!-- Custom Checkbox + Radio -->
<!-- All JS functions -->
<script src="js/functions.js"></script>
</body>
</html>
解决方案
Errors
You are conflicting mysql and mysqli.
name attribute is not define on here <button class="btn btn-sm m-r-5" type="submit">Register</button>
In register.php you check isset with an class, This will never worksif(isset($_POST['btn-signup']))
As well as your Form name field and retrieve fields are wrong.(form - placeholder="Full Name" name="fname"/ in code - mysql_real_escape_string($_POST['fullname']))
Improvements
To check variable is null or empty use empty() keyword