<div dir="ltr">Dear Francisco,<br><br>O the iAH results are all displayed inside a <form>, it is possible that some <form> is open inside iah (I will check).<br><br>Quick fix for your code that worked for me:<br><font face="monospace"><br>'</form><form action="/viewer.php" name="viewpdf'mfn'" method="POST" target="_blank"><br><input type="hidden" name="pdffile" value="/bases/theses/pdf/'v990*4'";><br><input type="submit" value="View PDF">'<br>'</form>' </font><br><br><br>I removed the HTML elements that didn't add much.<br><div>I added a dynamic name to the form, because multiple identical forms can cause problems in the future.<br></div><div><br></div><div>Best regards,</div><div><br></div><div>Roger</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em dom., 12 de fev. de 2023 às 04:08, Francisco Tamor <<a href="mailto:fttamor@yahoo.com">fttamor@yahoo.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Roger,<div><br></div><div>I captured the codes upon doing inspection of the button. Attached are the codes - the first 3 are from the first record which is not responding, the next 2 are from the 2nd button etc.</div><div><br></div><div>Thanks again,</div><div>Francisco</div><div><div><img id="m_-8820853712496622061ymail_attachmentIda22557b5-fe18-45c2-8113-a619b06b4fc5" src="cid:18645e37532571167b81" style="width: 100%; max-width: 800px;"><br></div><div><img id="m_-8820853712496622061ymail_attachmentId4cf0904e-45e0-410e-80be-259f2dc36e45" src="cid:18645e375325928e4de2" style="width: 100%; max-width: 800px;"><br></div><div><img id="m_-8820853712496622061ymail_attachmentId40467098-3e14-444e-85f4-ebd21a94fc7d" src="cid:18645e375328c05ba7a3" style="width: 100%; max-width: 800px;"><br></div><div><img id="m_-8820853712496622061ymail_attachmentId51ab7ee6-b192-4ee9-9a1c-cbb1d3a50ef5" src="cid:18645e375329186e8de4" style="width: 100%; max-width: 800px;"><br></div><br><br><br><br><br></div><div><br><div id="m_-8820853712496622061ymail_android_signature"><a id="m_-8820853712496622061ymail_android_signature_link" href="https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature" target="_blank">Sent from Yahoo Mail on Android</a></div> <br> <blockquote style="margin:0px 0px 20px"> <div style="font-family:Roboto,sans-serif;color:rgb(109,0,246)"> <div>On Sat, Feb 11, 2023 at 22:49, Roger Guilherme</div><div><<a href="mailto:memoria.info@gmail.com" target="_blank">memoria.info@gmail.com</a>> wrote:</div> </div> <div style="padding:10px 0px 0px 20px;margin:10px 0px 0px;border-left:1px solid rgb(109,0,246)"> <div id="m_-8820853712496622061yiv8043758536"><div><div dir="ltr">Dear Francisco<br clear="none"><br clear="none">I am suspicious that the problem is in the content of <input type="hidden" name="pdffile" value="/bases/theses/pdf/'<b>v990*4</b>'">.<br clear="none"><br clear="none">Can you inspect this button by pressing F12 in the browser to see what is contained within it?<br clear="none"><br clear="none">From what I saw in the video the button is not sending the form. This usually happens because something is breaking the form.<br clear="none"><div><br clear="none"></div><div>Best regards,</div><div><br clear="none"></div><div>Roger</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div></div><br clear="none"><div id="m_-8820853712496622061yiv8043758536yqt29614"><div><div dir="ltr">Em sáb., 11 de fev. de 2023 às 11:04, Francisco Tamor <<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:fttamor@yahoo.com" target="_blank">fttamor@yahoo.com</a>> escreveu:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px"><div></div>
        <div dir="ltr">Hi Roger,</div><div dir="ltr"><br clear="none"></div><div dir="ltr">I have attached the full PFT and PHP files together with the video of the entire search activity.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Thank you.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Francisco<br clear="none"></div><div><br clear="none"></div>
        
        </div><div id="m_-8820853712496622061yiv8043758536m_-3265518467433213083yahoo_quoted_7063856613">
            <div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
                
                <div>
                    On Saturday, 11 February 2023 at 02:38:44 pm GMT+8, Francisco Tamor <<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:fttamor@yahoo.com" target="_blank">fttamor@yahoo.com</a>> wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div id="m_-8820853712496622061yiv8043758536m_-3265518467433213083yiv6164033261"><div><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px"><div></div>
        <div dir="ltr">Hi Roger,</div><div dir="ltr"><br clear="none"></div><div dir="ltr">My apologies, it,s not  <span><b style="font-family:monospace">"if npost(['theses'],  but actually <span><b style="font-family:monospace">"if nocc(['theses'],<span><b style="font-family:monospace">,'PD_'v990*4)=1 then" .</b></span></b></span></b></span></div><div dir="ltr"><span><b style="font-family:monospace"><span><b style="font-family:monospace"><span><b style="font-family:monospace"><br clear="none"></b></span></b></span></b></span></div><div dir="ltr">Regards,</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Francisco</div><div><br clear="none"></div>
        
        </div><div id="m_-8820853712496622061yiv8043758536m_-3265518467433213083yiv6164033261yqt84430"><div id="m_-8820853712496622061yiv8043758536m_-3265518467433213083yiv6164033261yahoo_quoted_6261556863">
            <div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
                
                <div>
                    On Saturday, 11 February 2023 at 02:19:59 am SGT, Roger Guilherme <<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:memoria.info@gmail.com" target="_blank">memoria.info@gmail.com</a>> wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div id="m_-8820853712496622061yiv8043758536m_-3265518467433213083yiv6164033261"><div><div dir="ltr"><br clear="none"><div>Hi, Francisco<br clear="none"><br clear="none">Something tells me that the problem is in this line <font face="monospace"><b>"if npost(['theses'],'PD_'v990*4)=1 then"</b></font>, but only by seeing the result of <b>'PD_'v990*4</b> to be sure.<br clear="none"><br clear="none">Another thing that catches my eye is the "display:none" in the pdffile input. My opinion: change the input to "hidden" and remove the inline css.<br clear="none"><br clear="none">Here is my version of the code and let me know if it improves anything.<br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><font face="monospace">'<form action="/viewer.php" method="POST" target="_blank"><br clear="none"><input type="hidden" name="pdffile" value="/bases/theses/pdf/'v990*4'"><br clear="none"><font face=arial size=2 align="left"><b> View PDF: &nbsp;</b><input type="submit" value="'v990*4'"></font><br clear="none"></form>'</font><br clear="none"></div><div><br clear="none"></div><div>Best regards,</div><div><br clear="none"></div><div>Roger</div><div><br clear="none"></div><div><br clear="none"></div></div><br clear="none"><div id="m_-8820853712496622061yiv8043758536m_-3265518467433213083yiv6164033261yqt20055"><div><div dir="ltr">Em sex., 10 de fev. de 2023 às 13:25, Francisco Tamor <<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:fttamor@yahoo.com" target="_blank">fttamor@yahoo.com</a>> escreveu:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Guillermo,<div><br clear="none"></div><div>Yes, PHP is not triggered on the first result but others starting from the second result display the pdf in a viewerr I made.</div><br clear="none"><div id="m_-8820853712496622061yiv8043758536m_-3265518467433213083yiv6164033261m_-4640653512142022639ymail_android_signature"><a rel="nofollow noopener noreferrer" shape="rect" id="m_-8820853712496622061yiv8043758536m_-3265518467433213083yiv6164033261m_-4640653512142022639ymail_android_signature_link" href="https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature" target="_blank">Sent from Yahoo Mail on Android</a></div> <br clear="none"> <blockquote style="margin:0px 0px 20px"> <div style="font-family:Roboto,sans-serif;color:rgb(109,0,246)"> <div>On Fri, Feb 10, 2023 at 17:59, Roger Guilherme</div><div><<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:memoria.info@gmail.com" target="_blank">memoria.info@gmail.com</a>> wrote:</div> </div> <div style="padding:10px 0px 0px 20px;margin:10px 0px 0px;border-left:1px solid rgb(109,0,246)"> <div id="m_-8820853712496622061yiv8043758536m_-3265518467433213083yiv6164033261m_-4640653512142022639yiv1638777025"><div dir="ltr"><div><div><br clear="none"></div><div><br clear="none"></div><div>Dear Francisco<br clear="none"><br clear="none">I don't think I quite understand what is going on. Correct me if I got it wrong.<br clear="none"><br clear="none">- In the result list, isn't the link to the PDF displayed from the second result?<br clear="none"><br clear="none">- In the first result of the list PHP is not being triggered?<br clear="none"><br clear="none"></div><div>best regards,</div><div><br clear="none"></div><div>Roger</div><div><br clear="none"></div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>
      <br clear="none">
      -------- Doorgestuurd bericht --------
      <table cellspacing="0" cellpadding="0" border="0"><tbody><tr><th align="RIGHT" colspan="1" nowrap rowspan="1" valign="BASELINE">Onderwerp:
            </th><td colspan="1" rowspan="1">[DKIM] [Isis-users] External PHP</td></tr><tr><th align="RIGHT" colspan="1" nowrap rowspan="1" valign="BASELINE">Datum: </th><td colspan="1" rowspan="1">Thu, 9 Feb 2023 06:40:04 +0000 (UTC)</td></tr><tr><th align="RIGHT" colspan="1" nowrap rowspan="1" valign="BASELINE">Van: </th><td colspan="1" rowspan="1">Francisco Tamor <a rel="nofollow noopener noreferrer" shape="rect" href="mailto:fttamor@yahoo.com" target="_blank"><fttamor@yahoo.com></a></td></tr><tr><th align="RIGHT" colspan="1" nowrap rowspan="1" valign="BASELINE">Aan: </th><td colspan="1" rowspan="1">Isis-users <a rel="nofollow noopener noreferrer" shape="rect" href="mailto:isis-users@iccisis.org" target="_blank"><isis-users@iccisis.org></a></td></tr></tbody></table>
      <br clear="none">
      <br clear="none">
      <div style="font-family:Helvetica,Arial,sans-serif;font-size:13px">
        <div dir="ltr">Dear Colleagues;</div>
        <div dir="ltr"><br clear="none">
        </div>
        <div dir="ltr"> I have created and external
          PHP file to view my pdf filest. However, all the first
          records  after the search result do not display the pdf file.
          Other file will show the pdf but not the first record. Hope
          somebody could help me in this. Attached are the display
          format and PHP code I used.</div>
        <div dir="ltr"><br clear="none">
        </div>
        <div dir="ltr">Thank you.</div>
        <div dir="ltr"><br clear="none">
        </div>
        <div dir="ltr"><br clear="none">
        </div>
        <div dir="ltr">----------------<br clear="none">
        </div>
        <div dir="ltr">Viewer.php</div>
        <div dir="ltr"><br clear="none">
        </div>
        <div dir="ltr">
          <div dir="ltr"><?php<br clear="none">
            session_start();<br clear="none">
            $_SESSION=array();<br clear="none">
            include("central/config.php");<br clear="none">
            include("$app_path/common/get_post.php");<br clear="none">
            $new_window=time();<br clear="none">
            //foreach ($arrHttp as $var=>$value) echo "$var =
            $value<br>";<br clear="none">
            <br clear="none">
            if (isset($_SESSION["lang"])){<br clear="none">
                $arrHttp["lang"]=$_SESSION["lang"];<br clear="none">
            }else{<br clear="none">
                $arrHttp["lang"]=$lang;<br clear="none">
                $_SESSION["lang"]=$lang;<br clear="none">
            }<br clear="none">
            include ("$app_path/lang/admin.php");<br clear="none">
            include ("$app_path/lang/lang.php");<br clear="none">
            ?><br clear="none">
            <br clear="none">
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
            Transitional//EN"<br clear="none">
              
             <a rel="nofollow noopener noreferrer" shape="rect" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</a>><br clear="none">
            <br clear="none">
            <html lang="pt-br" xmlns=<a rel="nofollow noopener noreferrer" shape="rect" href="http://www.w3.org/1999/xhtml" target="_blank">"http://www.w3.org/1999/xhtml"</a>
            xml:lang="pt-br"><br clear="none">
            <br clear="none">
            <head profile=<a rel="nofollow noopener noreferrer" shape="rect" href="http://www.w3.org/2005/10/profile" target="_blank">"http://www.w3.org/2005/10/profile"</a>><br clear="none">
                    <meta http-equiv="Expires" content="-1" /><br clear="none">
                    <meta http-equiv="pragma" content="no-cache"
            /><br clear="none">
                    <META http-equiv="Content-Type"
            content="text/html; charset=ISO-8859-1"><br clear="none">
                    <meta http-equiv="Content-Language"
            content="pt-br" /><br clear="none">
                    <meta name="robots" content="all" /><br clear="none">
                    <meta http-equiv="keywords" content="" /><br clear="none">
                    <meta http-equiv="description" content="" /><br clear="none">
                            <link rel="shortcut icon"
            href="/favicon.ico" type="image/x-icon" sizes="16x16"><br clear="none">
            <br clear="none">
                    <title>PDF View</title><br clear="none">
            <br clear="none">
            <br clear="none">
              <br clear="none">
            </head><br clear="none">
            <body onload="disableContextMenu();"
            oncontextmenu="return false"><br clear="none">
                <div class="wrapper"><br clear="none">
                <div id="result"></div><br clear="none">
                    <br clear="none">
                    <iframe id="pdfframe" src=<?php
            if(isset($_POST["pdffile"])) { echo
            $_POST["pdffile"].'#toolbar=0';} ?>  width="100%"
            height="800px"></iframe><br clear="none">
                    <br clear="none">
                    <div class="embed-cover"></div><br clear="none">
                </div><br clear="none">
                <br clear="none">
                <br clear="none">
            </body><br clear="none">
            <div></html></div>
            <div><br clear="none">
            </div>
            <div><br clear="none">
            </div>
            <div>----------------------------------<br clear="none">
            </div>
            <div dir="ltr">Dislpay Format (opac.pft)
              - for v990<br clear="none">
            </div>
            <br clear="none">
            <br clear="none">
            <div>if npost(['theses'],'PD_'v990*4)=1 then<br clear="none">
              '<form action="/viewer.php" method="POST"
              target="_blank"><font face=arial size=2
              color="#000080"><b><input type="text"
              name="pdffile" value="/bases/theses/pdf/'v990*4'"
              style="display:none";></b><font face=arial
              size=2 align="left"><b> View PDF:
              &nbsp;</b><input type="submit"
              value="'v990*4'"></form>' <br clear="none">
              fi, '<br><br>'<br clear="none">
              <br clear="none">
            </div>
            <div><br clear="none">
            </div>
            <br clear="none">
          </div>
          <div><br clear="none">
          </div>
          <div dir="ltr">Search Result Display<br clear="none">
          </div>
        </div>
      </div>
    </div>
  </div>

</blockquote></div></div>
</div> </div> </blockquote></blockquote></div></div>
</div></div></div>
            </div>
        </div></div></div></div></div>
            </div>
        </div></div></blockquote></div></div>
</div></div> </div> </blockquote></div></blockquote></div>