Jump to content

Issues with using a echo output as an hyperlink.


brianjmoser

Recommended Posts

What I have been attempting to do with no luck is utilize  <?php echo $row_DetailRS1['NSN']; ?> as a hyperlink.  The Hyperlink will point to another website http://www.logisticsinformationservice.dla.mil/webflis/pub/pub_search.aspx?niin=+++++++++++++    The 13 + signs would be populated with the 13 digit that is returned from <?php $info=$row_DetailRS1['NSN']; ?>  Below is the complete code as it stands how.  Any assistance with making this work is greatly appreciated.

 

<A HERF="http://www.logisticsinformationservice.dla.mil/webflis/pub/pub_search.aspx?niin=<?php $info=$row_DetailRS1['NSN']; ?>"><?php echo $row_DetailRS1['NSN']; ?></A>

 

One additional question. If I want a new page to open when the hyperlink is clicked would I add  &newpage=1  to the end of the URL?

<?php $info=$row_DetailRS1['NSN']; ?>
<a href="http://www.logisticsinformationservice.dla.mil/webflis/pub/pub_search.aspx?niin=<?php echo $info; ?>" target="_blank"><?php echo $info; ?></a>

 

new page is created by the target="_blank"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.