Forums

PHP Dynamic Tabindex Numeration (4 posts)

  1. obertfsp2k8
    Member
    Posted 3 years ago #

    Hello,
    it's since long time that I try to get a PHP Dynamic Tabindex Numeration for every links and inputs, in a theme; but I don't find the right way to do it.
    I'm using
    <?php $t = 1; ?>
    in the header.php, then add
    tabindex="<?php echo $t++ ?>"
    and/or
    tabindex="'. $t++ .'"
    in all links and input fields.
    It will looks like in this test post http://obertfsp.com/wordpress/2009/01/10/xampp_on_windowsxp/
    somewhere the tabindex value isn't printed at all,somewhere I get two 1..it's all done so randomly, and I don't find where I'm doing wrong.
    Usually,in a php standalone page, it will works correctly, not in a wp theme.
    I would be glad to find a definately way.

    Thanks.
    Alberto

  2. obertfsp2k8
    Member
    Posted 3 years ago #

    Why i don't receive any answers? Is a stupid question,mine?

  3. obertfsp2k8
    Member
    Posted 3 years ago #

    Thanks for the support.

  4. daniiswara
    Member
    Posted 3 years ago #

    Hi, should you use tabindex if your web page structure is already in logical?

    For the WordPress, I did automatic tabindex, but then I leave it.

Topic Closed

This topic has been closed to new replies.

About this Topic