It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Polls

Polls

Postby Johnathan on Thu Sep 27, 2007 5:45 pm

Hey anyone here kno how to have a html poll on my site so users can select and show the result?
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Postby bobbyblades on Thu Sep 27, 2007 8:09 pm

your going to need a place to store the results (flat file or database) then read to or write to the file (php), a flat file would be the best bet since the data isn't large enough to warrant a db.after reading the file print out the results with a server side language in html. thats what I would do but I have been wrong before LOL, there should be tutorials on the web of how to do it in detail. and probably even free scripts as well
User avatar
bobbyblades
50+ Club
 
Posts: 85
Joined: Fri Aug 24, 2007 8:38 pm
Location: hawaii or bust

Postby flabbyrabbit on Thu Sep 27, 2007 8:58 pm

Either search google for "free poll scripts" or post this in the php + mysql forum.

Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby Johnathan on Thu Sep 27, 2007 9:01 pm

i tried googleing it and i take it then theres no way of usin html for it?
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Postby bobbyblades on Thu Sep 27, 2007 10:31 pm

the data for the results of the poll must be kept in persistent storage, a file, a database, a cookie, HTML is a placeholder for static or dynamic data, but it can't manipulate that data on it's own. you must get the data from somewhere a cookie for instance
User avatar
bobbyblades
50+ Club
 
Posts: 85
Joined: Fri Aug 24, 2007 8:38 pm
Location: hawaii or bust

Postby flabbyrabbit on Fri Sep 28, 2007 10:56 am

If you only want to use html, then you will have to embed someone elses code. Check this out: http://www.bravenet.com/webtools/minipoll/ it helped me before i learnt php myself, it is actually very good.

Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England


Who is online

Users browsing this forum: No registered users and 5 guests