<legend>Security image</legend>
<fieldset>
<legend>Security image</legend>
<div class="table">
<ul style="width: 30%">
<li class="even">
<label>Captcha World</label>
</li>
</ul>
<ul style="width: 80%">
<li class="even">
<?php echo $captcha;?>
<input type='text' name='captcha'/>
</li>
</ul>
</div>
</fieldset>
<br/>
<label> </label>
<div class='errors'>
<?php echo error(validation_errors()); ?>
</div>
<?php include("public/js/keyboard.php");?>
<script>
function createAccount() {
$('.loader').show();
var form = $('#createAccount').serialize();
$.ajax({
url: '<?php echo WEBSITE; ?>/index.php/account/create/1',
type: 'post',
data: form,
success: function(data) {
$('.errors').html(data);
$('.loader').hide();
}
});
}
</script>
<link rel="stylesheet" type="text/css" href="<?php echo WEBSITE; ?>/public/css/keyboard.css">
<div class='message'>
<div class='title'>Create an Account</div>
<div class='content'>
<?php echo form_open('account/create', array('onSubmit'=>'createAccount(); return false;', 'id'=>'createAccount')); ?>
<label>Account Name</label><input type="text" value="<?php echo set_value('name'); ?>" class="keyboardInput" name="name"/><br>
<label>Nickname</label> <input type='text' name='nickname' value='<?php echo set_value('nickname'); ?>'/><br/>
<label>E-mail</label><input type="text" value="<?php echo set_value('email'); ?>" name="email"/><br>
<label>Password</label><input type="password" class="keyboardInput" name="password"/><br>
<label>Repeat</label><input type="password" class="keyboardInput" name="repeat"/><br>
<label></label><?php echo $captcha;?><br />
<label>Captcha World</label><input type='text' name='captcha'/><br/>
<label> </label><input class='sub' type="submit" value="Register"/><?php echo loader();?>
</form>
</div>
<div class='bar'>If you create an account you accept to our <a href='#' onClick='$("#rules").toggle(500);'>Rules</a>.</div>
</div>
<div id='rules' style='margin-top: 10px; width: 100%; height: 300px; overflow: auto; display: none;'><?php echo nl2br(getContent("system/rules.php")); ?></div>
i have diferent create.php Dx its:
PHP:<div class='errors'> <?php echo error(validation_errors()); ?> </div> <?php include("public/js/keyboard.php");?> <script> function createAccount() { $('.loader').show(); var form = $('#createAccount').serialize(); $.ajax({ url: '<?php echo WEBSITE; ?>/index.php/account/create/1', type: 'post', data: form, success: function(data) { $('.errors').html(data); $('.loader').hide(); } }); } </script> <link rel="stylesheet" type="text/css" href="<?php echo WEBSITE; ?>/public/css/keyboard.css"> <div class='message'> <div class='title'>Create an Account</div> <div class='content'> <?php echo form_open('account/create', array('onSubmit'=>'createAccount(); return false;', 'id'=>'createAccount')); ?> <label>Account Name</label><input type="text" value="<?php echo set_value('name'); ?>" class="keyboardInput" name="name"/><br> <label>Nickname</label> <input type='text' name='nickname' value='<?php echo set_value('nickname'); ?>'/><br/> <label>E-mail</label><input type="text" value="<?php echo set_value('email'); ?>" name="email"/><br> <label>Password</label><input type="password" class="keyboardInput" name="password"/><br> <label>Repeat</label><input type="password" class="keyboardInput" name="repeat"/><br> <label></label><?php echo $captcha;?><br /> <label>Captcha World</label><input type='text' name='captcha'/><br/> <label> </label><input class='sub' type="submit" value="Register"/><?php echo loader();?> </form> </div> <div class='bar'>If you create an account you accept to our <a href='#' onClick='$("#rules").toggle(500);'>Rules</a>.</div> </div> <div id='rules' style='margin-top: 10px; width: 100%; height: 300px; overflow: auto; display: none;'><?php echo nl2br(getContent("system/rules.php")); ?></div>
thats what i have at create.php Dx
<label></label><?php echo $captcha;?><br />
<label>Captcha World</label><input type='text' name='captcha'/><br/>
<label> </label>