Results 1 to 8 of 8
  1. #1

    Default codeigniter help


    Help sakto ba ni nga format mauni ang akong view sa codeigniter, gusto nako e save sa database help unsaon pag save.

    <form class="well"style="width: 500px">

    Objective : <select class="selectpicker">
    echo<option>.</option>
    <option>B. .</option>
    <option>C. </option>
    <option> D </option>
    <option></option>
    </select>
    <button class="btn btn-primary">Save</button>
    <button class="btn btn-primary">Cancel</button>
    </form>

  2. #2
    Elite Member noy.juan's Avatar
    Join Date
    Mar 2010
    Gender
    Male
    Posts
    1,521
    Blog Entries
    1
    butangig action properties i point sa url nga mo receive sa variable and dont forget to name sa mga input...

    this is more of html question than a codeigniter...

  3. #3
    unsaon pag butang bosing wpamn gud alamag ani sugod pa
    Quote Originally Posted by noy.juan View Post
    butangig action properties i point sa url nga mo receive sa variable and dont forget to name sa mga input...

    this is more of html question than a codeigniter...

  4. #4
    Elite Member noy.juan's Avatar
    Join Date
    Mar 2010
    Gender
    Male
    Posts
    1,521
    Blog Entries
    1
    Quote Originally Posted by xinjia View Post
    unsaon pag butang bosing wpamn gud alamag ani sugod pa
    <form class="well"style="width: 500px" action="<url where you want to process $_POST>">

    Objective : <select class="selectpicker" name="selectpicker">
    echo<option>.</option>
    <option>B. .</option>
    <option>C. </option>
    <option> D </option>
    <option></option>
    </select>
    <button class="btn btn-primary" type="submit">Save</button>
    <button class="btn btn-primary">Cancel</button>
    </form>

    in codeingiter i think post is access through $this->input->post();

  5. #5
    <form method="post" action="<?php echo site_url('class/method') ?>">
    Objective : <select class="selectpicker" name="selectpicker">
    echo<option>.</option>
    <option>B. .</option>
    <option>C. </option>
    <option> D </option>
    <option></option>
    </select>
    <button class="btn btn-primary" type="submit">Save</button>
    <button class="btn btn-primary">Cancel</button>
    </form>

    Controller:
    function method() {
    $this->load->model('model_name');
    $select = $this->input->post('selectpicker');
    $insert = $this->model_name->insert($select);
    }

    Model:
    function insert($select) {
    $arr = array('picker'=>$select);
    $this->db->insert('tbl_name', $arr);
    }

    kw na bahala sa view unsaon nimo pagpa view haha

  6. #6
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465
    ayaw ambak codeigniter. html and raw php sa boss para di ka makuratan.

  7. #7
    Elite Member noy.juan's Avatar
    Join Date
    Mar 2010
    Gender
    Male
    Posts
    1,521
    Blog Entries
    1
    Quote Originally Posted by jairoh_ View Post
    ayaw ambak codeigniter. html and raw php sa boss para di ka makuratan.
    some people tend to forget the basic and jump straight to framework either by peer-recommendation or its famous... i dont really agree to it... every developer should have strong foundation on basic before moving towards using a framework... for me i dont really recommend codeigniter due the fact its not modular, to make it... you risk editing the core files... which is a no-no to any framework... if there is a framework to recommend i prefer laravel or zend... still i prefer to create my own... just for the sake of the itch to test asa ko kutob... hahahahahaha

  8. #8
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465
    Quote Originally Posted by noy.juan View Post
    some people tend to forget the basic and jump straight to framework either by peer-recommendation or its famous... i dont really agree to it... every developer should have strong foundation on basic before moving towards using a framework... for me i dont really recommend codeigniter due the fact its not modular, to make it... you risk editing the core files... which is a no-no to any framework... if there is a framework to recommend i prefer laravel or zend... still i prefer to create my own... just for the sake of the itch to test asa ko kutob... hahahahahaha
    i still use codeigniter for production kai robust au and the v3.0 is so stable. but the ship is sinking, ellislab is finding a new captain for it. They are focusing on expression engine. so for as now, i'm starting to use laravel, but laravel is not that strong(gamai pa ang mga libraries and mga contributor ) and the documentation is awful unlikd codeigniter. But i know laravel will grow so big, di pa nuon au cya commercialize but i know big contributors from codeigniter migrating to laravel and others to fuelphp.

  9.    Advertisement

Similar Threads

 
  1. codeigniter language class help pls..
    By nohj in forum Programming
    Replies: 14
    Last Post: 07-25-2011, 06:09 PM
  2. help!!! ebay item...
    By ipog in forum Business, Finance & Economics Discussions
    Replies: 23
    Last Post: 08-25-2008, 01:30 PM
  3. HELP ABOUT AVATAR
    By sab0y in forum Support Center
    Replies: 59
    Last Post: 10-09-2007, 12:49 PM
  4. need help with p900
    By kloos in forum Gizmos & Gadgets (Old)
    Replies: 8
    Last Post: 09-04-2006, 01:55 PM
  5. Help Me I Cant Log In
    By mark eugene in forum Support Center
    Replies: 12
    Last Post: 06-06-2005, 02:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top