Page 1 of 1

Enabling / Disabling Buttons Public Use.

Posted: Mon Jul 13, 2009 10:31 am
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.

Re: Enabling / Disabling Buttons Public Use.

Posted: Mon Jul 13, 2009 10:44 am
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.