[PHP] anchor # not working?
hi folks! I've got a baffling, but probably simple problem (the worst kind) In my index.php page, I'm dynamically generating links like this: http://localhost/news.php#1 When I click the link, the url string get's passed in, and looking at the source of the news.php page shows: a href="#1"/a about half-way down.. but the page doesn't align with the anchor tag. I assume PHP doesn't do anything funky? Can anyone see what I've overlooked? tia! andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] anchor # not working?
Try: a name="1"/a At 06:02 PM 3/4/01 -0500, andrew wrote: hi folks! I've got a baffling, but probably simple problem (the worst kind) In my index.php page, I'm dynamically generating links like this: http://localhost/news.php#1 When I click the link, the url string get's passed in, and looking at the source of the news.php page shows: a href="#1"/a about half-way down.. but the page doesn't align with the anchor tag. I assume PHP doesn't do anything funky? Can anyone see what I've overlooked? tia! andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] - Brian White Step Two Designs Pty Ltd - SGML, XML HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] anchor # not working?
From: "andrew" [EMAIL PROTECTED] hi folks! I've got a baffling, but probably simple problem (the worst kind) In my index.php page, I'm dynamically generating links like this: http://localhost/news.php#1 When I click the link, the url string get's passed in, and looking at the source of the news.php page shows: a href="#1"/a about half-way down.. but the page doesn't align with the anchor tag. Change this to: a name="1"/a Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] anchor # not working?
thanks for the feedback, gents, but it's not working :/.. I changed to this, as suggested: a name="1"/a actually, here is a snippet of the function I'm using the generate the link: a href=\"news.php#$row[0]\"h5...more/h5/a and the subsequent anchor on the next page while ($row = mysql_fetch_row($result)) { a name=\"$row[0]\"/a trtdh3$row[2]/h3/td/tr trtdh4$row[3]/h4/td/tr } I've verifeid that $row[0] is printing the exact same content on both pages... quite odd that it's not working. TIA, andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] anchor # not working?
On 04-Mar-01 andrew wrote: thanks for the feedback, gents, but it's not working :/.. I changed to this, as suggested: a name="1"/a actually, here is a snippet of the function I'm using the generate the link: a href=\"news.php#$row[0]\"h5...more/h5/a and the subsequent anchor on the next page while ($row = mysql_fetch_row($result)) { a name=\"$row[0]\"/a trtdh3$row[2]/h3/td/tr trtdh4$row[3]/h4/td/tr } I've verifeid that $row[0] is printing the exact same content on both pages... quite odd that it's not working. maybe faulty memory on my part, but i think I've seen something similar (i.e. "a name" is flakey inside tables). play with putting a name ../a within your tr or h3 tags. Regards, -- Don Read [EMAIL PROTECTED] -- If you are going to sin, sin against God, not the bureaucracy. God will forgive you but the bureaucrats won't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]