PHP or Javascript... can you help me

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
robertbarzyk
Forum Newbie
Posts: 19
Joined: Tue Oct 06, 2009 4:12 pm

PHP or Javascript... can you help me

Post by robertbarzyk »

im trying to recreate the javascript on this page,
http://mobstars.ultimateadds.net/index. ... d=94072068

i have my own site similar to that, but i cannot get my javascript to work like theres,

to see what i mean, you must try to click "ENTER " and find its disabled,
until you've cliked all the add buttons,

i have been trying to get this to work for the past 3 days, wasted over 40 hours of my life=/
could someone help me out?
sr_umasankar
Forum Newbie
Posts: 2
Joined: Wed Oct 07, 2009 1:03 am

Re: PHP or Javascript... can you help me

Post by sr_umasankar »

Hi,

Using Javascript : you can set some counter values for the add buttons, I mean when you click each add button you need to increase the counter value(using hidden box) . Once it is reaches the particular target( counter == no.of add buttons). you will enable the "Enter" key.

PHP : Instead of using "hidden box" you can use "session variables".

All the best!
User avatar
N1gel
Forum Commoner
Posts: 95
Joined: Sun Apr 30, 2006 12:01 pm

Re: PHP or Javascript... can you help me

Post by N1gel »

Do you want the actual html syntax to disable a button and javascript syntax to enable it.

Code: Select all

 
echo "<input id='MyButton' type='button' value='Click Me' onclick='document.getElementById(\"MyDisabledButton\").disabled = false;document.getElementById(\"MyDisabledButton\").value = \"Enabled\"' />";
 
echo "<input id='MyDisabledButton' type='button' value='Disabled' disabled='true'/>";
 
ceiroa
Forum Newbie
Posts: 11
Joined: Thu Oct 08, 2009 4:14 pm

Re: PHP or Javascript... can you help me

Post by ceiroa »

Why exactly does the link to that page need to contain a referral id? Looks like spam to me...
Post Reply