Forum Moderators: mack

Message Too Old, No Replies

help on PHP for a newbie

         

mlalex

4:38 pm on Jan 12, 2005 (gmt 0)

10+ Year Member



Hi,
Below is the code i use to dynamically change the hyperlink when the particular keyword is clicked. Please help me to alter the code so that the link OPENS IN A NEW WINDOW.

Thank you.

-alex.

<?PHP
$list = "new York; paris; New delhi; new mexico;
$list_array = explode("; ", $list);
$length = count($list_array);
?>
<?PHP
for($i = 0; $i < $length; $i++)
{
print("<a
href=\"http://www.xyz.com/exec/obidos/external-search?search-type=ss&tag=affid&keyword=".$list_array[$i]."
&mode=abc\">".$list_array[$i]."</a><br>");
}
?>

DanA

5:54 pm on Jan 12, 2005 (gmt 0)

10+ Year Member



Maybe
print("<a
href=\"http://www.xyz.com/exec/obidos/external-search?search-type=ss&tag=affid&keyword=".$list_array[$i]."
&mode=abc\" target=\"_blank\">".$list_array[$i]."</a><br>");

mlalex

7:20 am on Jan 13, 2005 (gmt 0)

10+ Year Member



DanA,

Thank you very much. It works perfectly. This place is great full of answers. :)

- alex.

Hester

9:42 am on Jan 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Shouldn't this be in the PHP forum?

DanA

7:34 pm on Jan 13, 2005 (gmt 0)

10+ Year Member



Should be in the HTML forum...