Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- ?>
- <!DOCTYPE html>
- <html>
- <body>
- <h2>Text Input</h2>
- <?php
- echo validation_errors ('<div class="alert alert-warning">','</div>');
- echo form_open(base_url('index.php/welcome/add'));
- ?>
- <div>
- <label> Nama Depan</label>
- <div>
- <input type="text" name="nama_depan" value="<?php echo set_value ('nama_depan') ?>" maxlength="50" required>
- </div>
- </div>
- <br>
- <div>
- <label> Nama Belakang</label>
- <div>
- <input type="text" name="nama_belakang" value="<?php echo set_value ('nama_belakang') ?>" maxlength="50" required>
- </div>
- </div>
- <br>
- <div>
- <label> umur</label>
- <div>
- <input type="text" name="umur" value="<?php echo set_value ('umur') ?>" maxlength="13" required>
- </div>
- </div>
- <br>
- <div>
- <label> tlpn</label>
- <div>
- <input type="text" name="tlpn" value="<?php echo set_value ('tlpn') ?>" maxlength="30" required>
- </div>
- </div>
- <br>
- <div>
- <label> alamat</label>
- <div>
- <textarea name="alamat" rows="3" cols="50"><?php echo set_value ('alamat') ?></textarea>
- </div>
- </div>
- <br>
- <div>
- <input type="submit" name="submit" class="btn btn-primary btn-lg col-md-12" value="save">
- </div>
- <?php echo form_close(); ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement