-3

I want to display the variable with hyperlink. Does anyone know how to give? I have applied the below method for href:

<div style="width:50px;height:20px;float:right">
    <a href="#" onclick="$.ajaxCall('forum.UnFlag', 'user_id={$aThread.user_id} &thread_id={$aThread.thread_id} &rate_value=i', 'GET'); return false;">
            <button class="button" name="val[button]"  value="">$i </button>
    </a>
    <?php
            for ($i=0; $i <= 10; $i++)
            {
               echo "The number is ".$i."<br />";
            }
    ?>
</div>

if you need anything regarding this ask me..

4

1 回答 1

0

尝试

<?php
    for ($i=0; $i <= 10; $i++)
    {
       echo "The number is <a href=".$i." rel="">".$i."</a><br />";
    }
?>

php并在代码中更改下面的包装变量。

<button class="button" name="val[button]"  value=""><?php echo $i; ?></button>
于 2013-03-05T05:42:22.103 回答