Inserting info to database

3 posts by 3 authors in: Forums > CMS Builder
Last Post: November 18, 2013   (RSS)

By rui - November 16, 2013

Hi from Portugal,

i'm trying to do a small survey like: 

Do you like chocolat cake?

- yes

- no

the fields are easy to make on cms builder, the problem is that i dont know how the user will insert the vote no the database.

i dont want the users to register on the website, anybody can vote, but the problem is inserting a vote on the database so i can show to people the result.

the things i do on cms builder are one direction, (cms builder -> users) but now i want (users -> cms builder).

hope anybody can help me.

By Dave - November 18, 2013

Hi Rui,

Ron's right that you do need to write the custom PHP/MySQL code if you want to build a form that inserts data back into the database.

If you want to give that a try I've attached a very simple "add form" to get you started.  Note that for anything advanced beyond what CMSB does automatically it's all just PHP and MySQL, so there's lots of tutorials on the web for adding data into databases, etc.  And we'll give you a hand when we can as well.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com
Attachments:

addform_013.php 3K