Reputation: 70
I've been working on managing this site for a little bit and out of nowhere today I've lost functionality of links (of the type).
I've looked high and low, and I'm pretty sure the syntax is right on this link (it's never given me a problem before), but for some reason it won't link now! I want to pass the 'SomeString' element from my $array[] to myPage.php. Hovering over the link displays the right url, but clicking doesn't do anything. Nor can I right-click on the element in a browser to "Inspect Element", go figure!
echo "<li><a href='myPage.php?q=" . $array[$j]['SomeString'] . "'>" . $array[$j]['Name'] . "</a></li>";
Any suggestions would be greatly appreciated.
Upvotes: 0
Views: 94
Reputation: 1
I had the same problem, I emptied my cache, the problem went away and the href hyperlinked to my desired page.
Upvotes: 0
Reputation: 627
Check $array[$j]['SomeString']
to see if it is returning the same value as before.
var_dump($array[$j]['SomeString']);
Upvotes: 0
Reputation: 180147
View source and see what it's outputting. I'd bet your SomeString
has a quotation mark in it - you should be running it through urlencode
, most likely.
Upvotes: 1