• Hi,

    I need to create a new form and need to insert the data to database. I tried formbuilder plugin. But didnt get idea about, how the data to insert in db. or where to write the code for insertion. My aim is to create a form page and save the data to db.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    you can do this by using the global $wpdb please check this codex article… it will give you the right info about saving data in the database.
    Read the article and let us know if you have any questions after that.
    Regards

    Thread Starter betson

    (@betson)

    Hi,

    Thx for your quick reply.
    But my issue is, where will I create the form page. I cannot use theme’s templates. Where else I can create the form?

    Hmmm …
    In my opinion the best way to do it is to create a new template file and do it there …. if you want to you the form as widget you can also check some php widget plugins …
    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to create a form and submot data to db without using plugin or theme’ is closed to new replies.