brianjmoser Posted May 16, 2011 Share Posted May 16, 2011 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? Link to comment https://forums.phpfreaks.com/topic/236549-issues-with-using-a-echo-output-as-an-hyperlink/ Share on other sites More sharing options...
dragon_sa Posted May 16, 2011 Share Posted May 16, 2011 <?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" Link to comment https://forums.phpfreaks.com/topic/236549-issues-with-using-a-echo-output-as-an-hyperlink/#findComment-1216034 Share on other sites More sharing options...
brianjmoser Posted May 16, 2011 Author Share Posted May 16, 2011 That worked great! Thank you very much for the help. Link to comment https://forums.phpfreaks.com/topic/236549-issues-with-using-a-echo-output-as-an-hyperlink/#findComment-1216044 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.