Custom Registration page, php problems

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.
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!
 

Balls

Member
Jun 1, 2013
251
46
I don't have any other php code, I copied it from Habbo Theme, register page, then just edited the classes to my css. I then put it into app/tpl/skins/habbo/
 

Jeffrey

Devbest Indian Tech Support
FindRetros Moderator
Feb 5, 2013
1,180
412
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.
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!
This is the Register Code with Vue,

PHP:
<form method="post" id="phase-0-form">
                                <?php if(isset($template->form->error)) { echo '<div class="content-header red"><p>OOPS! '.$template->form->error.'.</p></div>'; } ?>
                                    <div class="content-content">
                                    <p>
                                        <strong>Desired Username</strong>
                                        <br />
                                        <input type="text" id="habbo-name" placeHolder="Username" size="35" value="<?php echo $template->form->reg_username; ?>" name="reg_username" class="text-field" maxlength="32">
                                        <br /><br />
                                        <strong>Desired Password</strong>
                                        <br />
                                        <input type="password" id="password" placeHolder="Password" size="35" name="reg_password" value="" class="password-field" maxlength="32">
                                        <br /><br />
                                        <strong>Confirm Password</strong>
                                        <br />
                                        <input type="password" id="password2" placeHolder="Confirm Password" size="35" name="reg_rep_password" value="" class="password-field" maxlength="32">
                                        <br /><br />
                                        <strong>Email Address</strong>
                                        <br />
                                        <input type="text" id="email" size="35" placeHolder="Email" name="reg_email" value="<?php echo $template->form->reg_email; ?>" class="text-field" maxlength="48">
                                        <br /><br />
                                        <strong>Security Key (Must be 4 numbers)</strong>
                                        <br />
                                        <input type="password" id="seckey" size="35" placeHolder="Security Key" name="reg_seckey" value="" class="text-field" maxlength="4">
                                        <br /><br />
                                        <button type="submit" name="register" class="submit green">Register</button>
                                        <button type="button" name="cancel" class="submit red" onclick="location.href='{url}/'" style="float:right;margin-right:35px;">Cancel</button>
                                    </p>
                                </form>
 

JayC

Always Learning
Aug 8, 2013
5,497
1,398
Just downloaded another theme:
Code:
                                <form method="post" id="phase-0-form">
                                    <div id="error-messages-container"><?php if(isset($template->form->error)) { echo '<div class="error-messages-holder"><ul><li><p class="error-message">'.$template->form->error.'</p></li></ul></div>'; } ?></div>
                                    <h2>Account details</h2>

      <div id="inner-container">
        <div class="inner-content bottom-border">
            <div class="field">
                <label for="email-address">Username</label>
                <input type="text" id="habbo-name" size="35" value="<?php echo $template->form->reg_username; ?>" name="reg_username" class="text-field" maxlength="32">
            </div>
           
            <div class="field">
                <label for="email-address">Email</label>
                <input type="text" id="email" size="35" name="reg_email" value="<?php echo $template->form->reg_email; ?>" class="text-field" maxlength="48">
            </div>
           

            <div id="password-field" class="field">
                <label for="register-password">Password</label>
                <input type="password" id="password" size="35" name="reg_password" value="" class="password-field" maxlength="32">
            </div>
           
       
<div class="field field-password2">
                                        <label for="password2"><b>Repeat Password</b></label> <br>
                                        <input type="password" id="password2" size="35" name="reg_rep_password" value="" class="password-field" maxlength="32">
</div>

       
             
             
            </div>
                                    <input type="submit" value="Register" name="register">
                                    <input type="button" value="Cancel" onclick="location.href='{url}/'" style="float:right;margin-right:12px;">
                                </form>
   </div>
</div>
Sorry I am use to UberCMS :)
 

Balls

Member
Jun 1, 2013
251
46
Still no change, I mean, all the classes are correct, so what could be wrong? If you would like i would happily offer teamviewer or skype.
 

Users who are viewing this thread

Top