Enabling / Disabling Buttons Public Use.

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
schwarzwolf
Forum Newbie
Posts: 7
Joined: Sat May 30, 2009 10:17 am

Enabling / Disabling Buttons Public Use.

Post by schwarzwolf »

Ok I will explain what I've done and what I want.

My site is a tournament, I made a clan wars page, when a team register a clan war each team must press 1 button (Join), that gives us 2 buttons, but these buttons must be enabled only if a moderator is on.

I tried javascript, I Used a button to enable Join buttons but it will only work for the person who clicks the button (the moderator) not for public use.

What I need Is a button that moderators click on it and it enables join buttons for everyone, or also another good idea.

Thank You In Advance.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Enabling / Disabling Buttons Public Use.

Post by jackpf »

You'd have to use ajax.

Although this isn't very secure. Someone could easily modify the page to enable the buttons and join anyway. You'd better use some PHP to enforce this as well.
Post Reply