can anyone tel me how to create an vote form just the begining of the code then i will procid with it
thenks..........
vote form
Moderator: General Moderators
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.
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.