|
Posted by Rik on 08/06/07 08:38
On Mon, 06 Aug 2007 10:34:17 +0200, *69 <amy@amy.com> wrote:
> I downloaded the 2 below PHP scripts. There are two individual script=
s,
> listed below:
>
> When you run suggest.php, and type in a keyword, it goes to google and=
> brings back a list of suggested words. These words should be =
> hyperlinked so
> that you can click them and it would bring back another list of words.=
> Problem is the "Get Suggestion" is not hyperlinked.
>
> I'm assuming the code for that is in here somewhere.
>
> <table align=3D"center">
> <?php
> foreach ($suggest_items as $key =3D> $value) {
> echo "<tr><td class=3D'details'><a
href=3D' ?
> http://www.google.com/search?hl=3Den&btnG=3DGoogle+Search&q=3D$key'
> target=3D'_blank'>$key</a></td><td class=3D'details'>" . trim($value) =
..
> "</td><td class=3D'details'><a
href=3D' ?
> http://www.mydomain.com/suggest.php?keyword=3D$key' target=3D'_self'>G=
et
> Suggestion</a</td></tr>";
> }
> echo "</table>";
> }
>
>
> Would someone be able to advise what is wrong?
Well, validate the HTML.
-- =
Rik Wasmus
[Back to original message]
|