poll vote and guestbook

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

CrazyEye
New php-forum User
New php-forum User
Posts: 22
Joined: Sat Jul 05, 2003 9:30 am
Location: Norway: Fauske

poll vote and guestbook

Postby CrazyEye » Sat Jul 05, 2003 9:38 am

what is the code to block a man to vote several time in a poll?
and the same in guestbook... need help..

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Sat Jul 05, 2003 5:28 pm

you could block IP or their username for a certain period of time.. :wink:

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

primary key

Postby ruturajv » Sun Jul 06, 2003 8:39 am

Make the primary key for the column of membername or ID
and he won't be able to vote again
:lol:

CrazyEye
New php-forum User
New php-forum User
Posts: 22
Joined: Sat Jul 05, 2003 9:30 am
Location: Norway: Fauske

Postby CrazyEye » Mon Jul 07, 2003 5:02 am

liquedus wrote:you could block IP or their username for a certain period of time.. :wink:


And whats the code to do that?
Im new at php...

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Mon Jul 07, 2003 5:58 am

to get IP use : getenv('REMOTE_ADDR');

to block by username, create database with users, once they log in, set a flag or timestamp that indicates they have voted.

code, you say? .... look using google, and you shall be enlightened :wink:

CrazyEye
New php-forum User
New php-forum User
Posts: 22
Joined: Sat Jul 05, 2003 9:30 am
Location: Norway: Fauske

Thx

Postby CrazyEye » Wed Jul 09, 2003 2:07 am

thx for the help :lol:


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 2 guests