I have a website that lists customer's jobs that have shipped.
When they click on the carrier's name it links to the carrier's website, but it uses the current window. Can I force the link to come up in a new window so my customer can see both my site as well as the carrier's.
Here is what I have so far.

do {
printf("<tr bgcolor=\"#EAE8E8\"><td>%s</td><td>%s</td><td><a href=\"http://%s\">%s</a></td><td>%s</td></tr>\n", $myrow["mold"],$myrow["shipdate"], $myrow["website"], $myrow["carrier"]
, $myrow["tracking"]);
}


Thanks for any help,


Stick

do
{
 printf("
  <tr bgcolor=\"#EAE8E8\"><td>%s</td><td>%s</td>
  <td><a href=\"http://%s\" target=\"_blank\">%s</a></td>
  <td>%s</td></tr>\n",
  $myrow["mold"],
  $myrow["shipdate"],
  $myrow["website"],
  $myrow["carrier"],
  $myrow["tracking"]
 );
}

That worked great. Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.