d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Creating Multiple Choice > Php/sql?
Add Reply New Topic New Poll
Member
Posts: 19
Joined: Sep 3 2013
Gold: 0.00
Sep 18 2013 07:33am
All,

I'm trying to create a set of survey questions that are based in 1 HTML/PHP Page that refresh to a new question when the user answers the question and stores it into a database,
It would be a little like the 'facemash' Zuckerberg did but instead of images answers to questions #yes #no #average etc, anyone know how i could approach this?

I'm kind of new to PHP and JS so I'm trying to incorporate it into a website.

cheer's
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Sep 18 2013 09:17am
1) create a sql database. do you have mysql installed, so you can easily create one?
2) access the database from php. try to insert some stupid data just to make sure you can do it
3) google for radio button and make a simple formular, make a POST request and make sure the php file that receives the request puts the answer of the radio buttons into sql
4) use JS for whatever you want to do with JS. i don't see any reason to use it, except if you want to use the keyboard keys to chose between #yes #no #average
5) make sure everything is save against sql injections, e.a.

if you want that we help you at step one... try to explain what server you use and how you access the files
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll