Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

poll vote and guestbook

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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..
CrazyEye
New php-forum User
New php-forum User
 
Posts: 22
Joined: Sat Jul 05, 2003 9:30 am
Location: Norway: Fauske

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

you could block IP or their username for a certain period of time.. :wink:
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

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:
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

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...
CrazyEye
New php-forum User
New php-forum User
 
Posts: 22
Joined: Sat Jul 05, 2003 9:30 am
Location: Norway: Fauske

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:
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Thx

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

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


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron