Shepred Posted March 4, 2014 Report Share Posted March 4, 2014 Evening! I've modified the registration module, but it simply won't submit whenever the button is pressed. I am unsure what I've done wrong, or what's causing the error. Any help is greatly appreciated, here's my code: <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <div class="row"> <div class="col-md-8"> <div class="shbox"> <div class="header"> vPrimera </div> <form method="post" action="<?php echo url('/registration');?>"> <div class="table"> <table class="table table-striped"> <tbody> <tr> <td><b>First name: *</b></td> <td><input type="text" name="firstname" class="form-control" value="<?php echo Vars::POST('firstname');?>" /><?php if($firstname_error == true) echo '<p class="error">Please enter your first name</p>'; ?></td> </tr> <tr> <td><b>Surname: *</b></td> <td><input type="text" name="lastname" class="form-control" value="<?php echo Vars::POST('lastname');?>" /><?php if($lastname_error == true) echo '<p class="error">Please enter your surname</p>'; ?></td> </tr> <tr> <td><b>Email address: *</b></td> <td><input type="text" name="email" class="form-control" value="<?php echo Vars::POST('email');?>" /><?php if($email_error == true) echo '<p class="error">Please enter your email address</p>'; ?></td> </tr> <tr> <td><b>Select Airline: *</b></td> <td><select name="code" id="code" class="form-control"><?php foreach($airline_list as $airline) { echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>'; } ?></select></td> </tr> <tr> <td><b>Desired hub: *</b></td> <td><select name="hub" id="hub" class="form-control"><?php foreach($hub_list as $hub) { echo '<option value="'.$hub->icao.'">'.$hub->icao.' - ' . $hub->name .'</option>'; } ?></select></td> </tr> <tr> <td><b>Country of residence: *</b></td> <td><select name="location" class="form-control"> <?php foreach($country_list as $countryCode=>$countryName) { if(Vars::POST('location') == $countryCode) { $sel = 'selected="selected"'; } else { $sel = ''; } echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>'; } ?> </select> <?php if($location_error == true) { echo '<p class="error">Please enter country of residence</p>'; } ?> </td> </tr> <tr> <td><b>Password: *</b></td> <td><input id="password" type="password" name="password1" class="form-control" value="" /></td> </tr> <tr> <td><b>Password again: *</b></td> <td><input type="password" name="password2" value="" class="form-control" /> <?php if($password_error != '') echo '<p class="error">'.$password_error.'</p>'; ?> </td> </tr> </tbody> </table> </div> <div class="text"> <input type="submit" name="submit" value="Send application" class="btn btn-default"/> </div> </form> </div> </div> <div class="col-md-4"> <div class="shbox"> <div class="header"> Notice </div> <div class="text"> Fields with an asteriks (*) must be filled. </div> </div> </div> </div> I am running the dev build of phpVMS 5.4. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
StartVM Posted March 5, 2014 Report Share Posted March 5, 2014 I am not quite sure what you really modified other than messing with the CSS. I am trying to understand what (<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>) is for? Most I can suggest is start fresh with the original template and add one line at a time and check it. Then, you can see where the issue is with. I put this on a demo site, and gave me a white screen. Also, double check you have the appropriet amount of closing </div> for the div classes. Quote Link to comment Share on other sites More sharing options...
Shepred Posted March 5, 2014 Author Report Share Posted March 5, 2014 I am not quite sure what you really modified other than messing with the CSS. I am trying to understand what (<?php if(!defined('IN_PHPVMS')&& IN_PHPVMS !==true){die();}?>) is for? Most I can suggest is start fresh with the original template and add one line at a time and check it. Then, you can see where the issue is with. I put this on a demo site, and gave me a white screen. Also, double check you have the appropriet amount of closing </div> for the div classes. Hi, thanks for you help. The "if defined in PHPVMS" is from the dev version of 5.4, comes stock with all pages. I've already tried replacing my file, with the default file, and it works just fine. I'll double check the closing div's when I get home, and get back to you. Quote Link to comment Share on other sites More sharing options...
Shepred Posted March 6, 2014 Author Report Share Posted March 6, 2014 I've now double checked all the closing div's, there was no errors. Any other suggestions? Does the placement of the <form> tag have any influence? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Strider Posted March 6, 2014 Report Share Posted March 6, 2014 try adding the following in: <dt>reCaptcha</dt> <dd> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> </dd> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.