Balls
Member
- Jun 1, 2013
- 251
- 46
Hello, Im currently working on an index.php with a Registration page on it. This is been used with revCMS, and when I try to register the index.php just reloads, and nothing has happened. When I look into the database the new usernames aren't there.
I believe it is something to do with the submit button or the register is not connecting to the database.
I hope you can help me! Thanks!
I believe it is something to do with the submit button or the register is not connecting to the database.
PHP:
<form method="post" class="form-horizontal">
<div class="form-group">
<label for="email" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<input type="text" id="email" size="35" name="reg_email" value="<?php echo $template->form->reg_email; ?>" maxlength="48" class="form-control" placeholder="Email" required="">
</div>
</div>
<div class="form-group">
<label for="habbo-name" class="col-sm-2 control-label">Username</label>
<div class="col-sm-10">
<input type="text" id="habbo-name" size="35" value="<?php echo $template->form->reg_username; ?>" name="reg_username" maxlength="32" class="form-control" placeholder="Username" required="">
</div>
</div>
<div class="form-group">
<label for="password" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" name="password" name="reg_password" value="" maxlength="32" class="form-control" placeholder="Password" required="">
</div>
</div>
<div class="form-group">
<label for="password2" class="col-sm-2 control-label">Confirm Password</label>
<div class="col-sm-10">
<input type="password" name="password2" name="reg_rep_password" value="" maxlength="32" class="form-control" placeholder="Confirm Password" required="">
</div>
</div>
<div class="form-group">
<label for="seckey" class="col-sm-2 control-label">Security Key</label>
<div class="col-sm-10">
<input type="password" id="seckey" name="reg_seckey" value="" maxlength="4" class="form-control" placeholder="4 Digit Key" required="">
</div>
</div>
</div>
<div class="modal-footer">
<input type="button" value="Cancel" onclick="location.href='{url}/'" class="btn btn-default" data-dismiss="modal">
<input type="submit" value="Register" name="register" class="btn btn-success">
</div>
</form>
I hope you can help me! Thanks!