alexa-tracking

Login / register CodeIgniter Tidak mau ke page login / register

Main Content

1024
1024
KASKUS
51
244
https://www.kaskus.co.id/thread/5acb5069d44f9fbd278b4567/login---register-codeigniter-tidak-mau-ke-page-login---register
Login / register CodeIgniter Tidak mau ke page login / register
Code:
<li><a href="<?php echo base_url('user/login') ?>">Login</a></li>
<li><a href="<?php echo base_url('user/register') ?>">Register</a></li>

Code:
<?php $this->load->view('front/header'); ?>
<?php echo $script_captcha; // javascript recaptcha ?>

<?php $this->load->view('front/navbar'); ?>

<div class="container">
<ol class="breadcrumb">
  <li><a href="<?php echo base_url() ?>"><i class="fa fa-home"></i> Home</a></li>
  <li class="active">Login</li>
</ol>
  <div class="row">
    <div class="col-lg-12">
      <h5>Login</h5>
      <hr>
      <div class="box box-primary">
        <?php echo form_open("user/login");?>
        <div class="box-body">
          <?php echo validation_errors() ?>
          <?php echo $this->session->userdata('message') <> '' ? $this->session->userdata('message') : ''; ?>
          <div class="form-group"><label>Username</label>
            <?php echo form_input($username);?>
          </div>
          <div class="form-group"><label>Password</label>
            <?php echo form_password($password);?>
          </div>
          <p><?php echo $captcha ?></p>
          <div class="form-group">
            <button type="submit" class="btn btn-primary">Submit</button>
            <button type="reset" class="btn btn-default">Cancel</button>
          </div>
        </div>
        <?php echo form_close(); ?>
      </div>
    </div>
    <?php $this->load->view('front/footer'); ?>


Code:
<?php $this->load->view('front/header'); ?>
<?php $this->load->view('front/navbar'); ?>

<div class="container">
<div class="row">
    <div class="col-lg-12">
      <ol class="breadcrumb">
      <li><a href="<?php echo base_url() ?>"><i class="fa fa-home"></i> Home</a></li>
      <li class="active">Register</li>
    </ol>
    </div>
<div class="col-lg-12">
      <h5>Daftar Member di <?php echo $title ?></h5>
<hr>
Sudah punya akun? Silahkan Login <a href="<?php echo base_url('user/login') ?>">disini</a>
<hr>
<div class="row">
  <div class="col-lg-12">
          <?php echo form_open("user/register");?>
          <div class="box-body">
            <?php echo $message;?>
<div class="row">
            <div class="col-xs-6"><label>Nama</label>
              <?php echo form_input($nama);?>
            </div>
<div class="col-xs-6"><labe>Username</label>
<?php echo form_input($username);?>
</div>
</div><br>
<div class="row">
<div class="col-xs-6"><label>Password</label>
<?php echo form_password($password);?>
</div>
<div class="col-xs-6"><label>Konfirmasi Password</label>
<?php echo form_password($password_confirm);?>
</div>
</div><br>
<div class="row">
<div class="col-xs-6"><label>No. Hp</label>
<?php echo form_input($email);?>
</div>
<div class="col-xs-6"><label>Email</label>
<?php echo form_input($email);?>
</div>
</div><br>
<div class="form-group"><label>Alamat</label>
<?php echo form_textarea($alamat);?>
</div>
            <div class="form-group">
              <button type="submit" class="btn btn-primary">Submit</button>
              <button type="reset" class="btn btn-default">Cancel</button>
            </div>
          </div>
          <?php echo form_close(); ?>
  </div>
</div>
</div>
  <?php $this->load->view('front/footer'); ?>




Kenapa saat klik login dan register dari navbar malah cuma refresh doang ya / ketika dklik login /register dari page lain kenapa larinya ke home ya ? ada yang bisa bantu ane kira kira salah dimana nya ya ??
cara manggil fungsi base_url() salah.
Quote:

harusnya
Code:
<?php echo base_url() . 'user/login'; ?>
<?php echo base_url() . 'user/register'; ?>
Salah cara manggilnya ? bisa dibantu dikoreksikan yang benar seperti apa gan ?

Quote:


KASKUS Ads
Quote:

seperti ini.
Quote:
Sudah ane ikutin cara agan ,ttp aja gan gabisa ,malah balik lagi kehalaman home
Quote:


UP UP UP UP
×