vote form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kujtim
Forum Commoner
Posts: 35
Joined: Sat Oct 25, 2003 4:00 am
Location: kosovo
Contact:

vote form

Post 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..........
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Post Reply