Page 1 of 1
vote form
Posted: Mon Nov 03, 2003 8:40 am
by kujtim
can anyone tel me how to create an vote form just the begining of the code then i will procid with it
thenks..........
Posted: Mon Nov 03, 2003 9:02 am
by JAM
If you create these things in this steps, you are on a good way:
1. A <form> in html sending the actual info to page X (can be the same page). Most likely only html knowledge behind this.
2. The page X, using $_POST (there is a sticky in these forums on this topic) to actually retrieve the information from the user.
3. Choose:
a) Plain textfile based solution, holding the results (easy, doesn't require a database).
b) Database solution, holding the solution (recommended, but more learning).
4. $_COOKIE's (info in the same thread I meantion above) to disable the user to vote twice in the same poll.
http://www.evilwalrus.com for snippets that might be useful.
Hope it helped some.
Posted: Mon Nov 03, 2003 7:34 pm
by m3mn0n