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?

Link to comment
Share on other sites

<?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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.