owex21 Posted March 10, 2010 Share Posted March 10, 2010 This code below keeps jumping to the else, what i need is for it to go to the first statement where $click is 0 and on the users next click to go to the else statement...$click is defined. $click =0; if ($click == 0) { echo("<a onclick=\"datefunction('$sday');\" href=\"#sub\">$day</a>\n"); $click = 1; } else { echo("<a onclick=\"datefunction2('$sday');\" href=\"#sub\">$day</a>\n");$click = 0; } Any help on why this, i'm betting its an obviously issue to sort :)My problem is it keeps jumping to the else..I'm not sure exactly why Link to comment Share on other sites More sharing options...
owex21 Posted March 10, 2010 Author Share Posted March 10, 2010 Ignore this, found a better method of implementing the statement in the function datefunctio. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.