Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7588747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:59:55+00:00 2026-05-30T19:59:55+00:00

Is there a Codeigniter way of populating a form with data from the database?

  • 0

Is there a Codeigniter way of populating a form with data from the database? For example, if the user edits a previously saved form. Since it’s previously saved then existing data already exists.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:59:56+00:00Added an answer on May 30, 2026 at 7:59 pm

    There isn’t any direct way of loading data from the database into your forms. BUT:

    • You can use the template parse library:
      http://codeigniter.com/user_guide/libraries/parser.html

      You only have to load the data into an array and then the labels into
      the form.

    • Or you can use the set_value() function, that has a second parameter(optional) that gives the field of a form a default value(very useful editing forms)
      http://codeigniter.com/user_guide/libraries/form_validation.html#helperreference

    • Also I’m now working in a third party addon that loads and makes forms automatically, but it’s very alpha to use it, but, there is rabbit forms that makes more or less the same(search for it in google, “rabbit forms codeigniter”, can’t post the hyperlink due to low reputation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My question is about inserting data with CodeIgniter Active record. There's an example on
Is there any way to access the current instance of CodeIgniter from an error
Is there a way to integrate CodeIgniter with phpBB3? I would like to use
is there a way to load css and/or javascript files from outside of the
Is there a way that I can make codeigniter only display « Older Articles
Hi friends i am creating newsletter in codeigniter. Is there a way to send
Is there a creative and easy way to check many form fields at once.
I am creating a form using codeigniter, I wanted to know whether there is
Is there a way to call a codeigniter private function on the commandline? like:
Is there a way that I can remove the action attribute in CodeIgniter? The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.