hi there ... i’m trying to add a little functionality to add automatically incremeted tabindex tags to all my links within my template. i know that the concept is sound but i can’t get it to work:
SetTabIndex snippet:
global $TabIndex = 0;
GetTabIndex snippet
$TabIndex++;
echo " tabindex=’".$TabIndex."’";
at the top of my template i call SetTabIndex and in my links i call GetTabIndex
the first instance of GetTabIndex increments the variable to 1, but all further calls also return 1
what am i doing wrong? any ideas gratefully accepted