revcms register button not working

RoidyMelan

Member
Apr 25, 2013
40
11
i have got a new register page it's all good but when i try to click the register button it doesnt work.
here is my code
Code:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - Registration</title>
       
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/common.js"></script>
        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css" type="text/css">
        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/embedregistration.css" type="text/css">
       
        <script type="text/javascript">
            document.habboLoggedIn = true;
            var habboName = null;
            var habboId = null;
            var habboReqPath = "";
            var habboStaticFilePath = "{url}/app/tpl/skins/Habbo";
            var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
            var habboPartner = "";
            var habboDefaultClientPopupUrl = "{url}/client";
            window.name = "habboMain";
            if (typeof HabboClient != "undefined") {
                HabboClient.windowName = "client";
                HabboClient.maximizeWindow = true;
            }
        </script>
       

       
        <style type="text/css">
            input[type="submit"], input[type="button"] {
                background: url('{url}/app/tpl/skins/Habbo/images/reg_btn.png') top;
                font: bold 13px arial,sans-serif;
                line-height: 25px;
                color: black;
                height: 25px;
                width: 99px;
                border: 0;
            }
            input[type="submit"]:hover, input[type="button"]:hover {
                background-position: bottom;
                cursor: pointer;
            }
        </style>
       
        <!--[if IE 8]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie8.css" type="text/css">
        <![endif]-->
        <!--[if lt IE 8]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie.css" type="text/css" />
        <![endif]-->
        <!--[if lt IE 7]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie6.css" type="text/css" />
            <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/pngfix.js"></script>
            <script type="text/javascript">
                try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
            </script>
            <style type="text/css">
                body { behavior: url({url}/app/tpl/skins/Habbo/js/csshover.htc); }
            </style>
        <![endif]-->
    </head>
   
    <body>
   
<div id="container">
<div id="container" class="phase-0" style="margin-top: 10px;">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column" style="width: 550px;">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title"><font size=1><span style="float: middle;">{hotelname} Registration</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2><div class="box-content"><table width="15%" style="padding: 5px; margin-left: -1px; background-color: #fff;">   

<center><img src="./app/tpl/skins/habbo/images/logo.png"></center>
   
   
                        </div>
                            <div class="phase-0">
                             
                                    <div id="name-field-container">
                                        <div class="field field-habbo-name">
                                  <center>            <label for="habbo-name"><b>Username</b></label>
                                    <center>          <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>
                                    <div class="field field-password">
                                <center>        <label for="password"><b>Password</b></label>
                                    <center>      <input type="password" id="password" size="35" name="reg_password" value="" class="password-field" maxlength="32">
                                    </div>
                                    <div class="field field-password2">
                                  <center>        <label for="password2"><b>Confirm Password</b></label>
                                  <center>        <input type="password" id="password2" size="35" name="reg_rep_password" value="" class="password-field" maxlength="32">
                                    </div>
                                    <div class="field field-email">
                                  <center>      <label for="email"><b>Email Address</b></label>
                                    <center>      <input type="text" id="email" size="35" name="reg_email" value="<?php echo $template->form->reg_email; ?>" class="text-field" maxlength="48">
                                    </div>
                                    <center><div class="field field-seckey">
                                        <label for="seckey"><b>Security Pin</b></label>
                                        <input type="password" id="seckey" size="35" name="reg_seckey" value="" class="text-field" maxlength="4">
                                    </div></center>
                                   
                                <center>     
                            <a href="#" class="new-button" id="next-btn"><b>Create Account</b><i></i></a>
            <input type="submit" id="next" value="Register" />
                               
                                    <input type="button" value="Cancel" onclick="location.href='{url}/'">
                                </form>
                                </div>
                               
                     
         
       
        <script type="text/javascript">
            HabboView.run();
        </script>
    </div></div>

</html>
 

JayC

Always Learning
Aug 8, 2013
5,497
1,398
Well I don't see anything that connects it to your database in your register page, usually there isn't a css file which is why I am sitting here like uhh.? Maybe someone else can help @wolf788
 

wolf788

Member
Jan 12, 2011
99
2
<input type="button" value="Cancel" onclick="location.href='{url}/'"> <---- That looks wrong to me. If you're using RevCMS then it should be pushing and pulling information to wwwroot/app/class.users.php which would then put the information into the database and register the account. Try to check that out, if you need help let me know ^_^ !
 

Khalil

IDK
Dec 6, 2011
1,642
786
<input type="button" value="Cancel" onclick="location.href='{url}/'"> <---- That looks wrong to me. If you're using RevCMS then it should be pushing and pulling information to wwwroot/app/class.users.php which would then put the information into the database and register the account. Try to check that out, if you need help let me know ^_^ !
I know this is old but, are you an idiot by birth or did you choose to become an idiot? That button's job is to cancel the registration and redirect the visitor back to the home page in case he wishes to not go on with the registration process. The button that submits the registration is one on top of the cancelling button. The reason as to why this is not working is because he is lacking the PHP code that checks for whether the registration form is submitted and then processes with the registration process.

The PHP code he's lacking is (this is for users who still face this problem):
PHP:
if(isset($template->form->error)) { echo $template->form->error; }
 

Users who are viewing this thread

Top