Re: <A NAME= question
| From: | Richard Baskett | Date: | Tue, 04 Mar 2003 22:29:43 +0000 |
| Subject: | Re: <A NAME= question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138183@lists.php.net to get a copy of this message | ||
for ($i = 1; $i < 6; $i++) {
echo "<a name=\"#{$I}\">Destination</a>\n";
}
You forgot the # sign.
Cheers!
Rick
Happiness is not a destination. It is a method of life. - Burton Hills
> From: "Beauford.2002" <beauford.2002@rogers.com>
> Date: Tue, 4 Mar 2003 17:21:20 -0500
> To: "HWG Basics" <hwg-basics@hwg.org>
> Cc: "PHP General" <php-general@lists.php.net>
> Subject: [PHP] <A NAME= question
>
> Not sure if this is a PHP or HTML problem, so I have posted it to both
> lists. I have a table with with 5 itmes in which I want to click on and go
> to a different part of the page.
>
> <TD><A HREF=#1>Click 1</A></TD>
> <TD><A HREF=#2>Click 2</A></TD>
> <TD><A HREF=#3>Click 3</A></TD>
> <TD><A HREF=#4>Click 4</A></TD>
> <TD><A HREF=#5>Click 5</A></TD>
>
> Now this is where it gets interesting.
>
> I have a PHP script which loops 5 times.
>
> for ($i = 1; $i < 6; $i++) {
>
> <A NAME = $i >Destination</A>
>
> A bunch of of other code.....
>
> }
>
> When I look at the source from my browser everything looks the way it should
> be. I get <A NAME=1>, <A NAME=2>, etc. The problem is that when I click on
> the link it does nothing. I get the little click noise, but that's it.
>
> Any ideas on this would be appreciated.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>