PDA

View Full Version : Double <a href> causes no validation


pjoern
10th of August 2007 (Fri), 01:28
Hi,

on my index page (www.ornit.dk/galleri) I have this code:
<div class="ee_group_image">
<a href="index.php?groupid=3&amp;ee_lang=eng"><a href ="index.php?groupid=3&amp;ee_lang=eng">

- a repetition of the <a href> link, which causes the page to not validate.

I think the reason is in the index.php file, but can't seem to find the exact spot. (I know my html, but almost nothing about php coding)...

Any suggestions?

jtalerico
12th of September 2007 (Wed), 12:04
In that directory (assuming you are using a linux/bsd/mac box) you can run this command in a terminal.

grep -r \<div class=\"ee_group_image\"\> *

This will show you everywhere that line is being used.

Good Luck!

wkitty42
14th of September 2007 (Fri), 19:45
the main problem is in some loops... this isn't the only place that something like this happens... on the coding side, the errant line is generated at the beginning or the end of the code segment and then is executed at the end after everything else has been processed... i've fixed a couple of them but don't know what or where they were,
ATM... there are messages in here that i've written that document it and tell how to correct them...