在新标签窗口中链接pdf内部

I want to open hyperlink in new tab which is in generated pdf.

  <?php if(($appval['name'])== 'PDF'){?>
         <dt ><?php echo stripslashes($appval['name']); ?></dt>
        <dd><a href=<?php echo stripslashes($appval['value']); ?> target="_blank"><?php echo stripslashes($appval['value']); ?></a></dd>
    <?php } else{?>
            <dt ><?php echo stripslashes($appval['name']); ?></dt>
        <dd><?php echo stripslashes($appval['value']); ?></dd>
        <?php }?>
            <?php } ?>
            </dl>
            <hr />
            <div style="page-break-before: always;"></div>
        <?php  }            
    }  
}

This does work :

<dd><a href=<?php echo stripslashes($appval['value']); ?> target="_blank"><?php echo stripslashes($appval['value']); ?></a></dd>

In a quick visual walkthrough of your code snippet, separating it out in a text editor to make the conditional branching a little easier to follow, I notice that if control passes into your else branch, no </a> will be issued. Your if-true branch does issue an </a>, and the code you have introduced as "This does work:" issues one as well, but the else branch does not.