Link to home
Start Free TrialLog in
Avatar of rcowen00
rcowen00Flag for United States of America

asked on

Opening multiple reports in new windows using variables

I have a page that sends an array to the code below.  I want to open a new window for each fpdf document that is produced.   I know the code below can't work but how can I?  I have tried using Javascript to open a new window, but I was unsuccessful in passing the PHP variable.  Any help is greatly appreciated.   Thank you.
<?php
	include 'include/userConnect.php';
error_reporting(E_ALL);
           $userIDKey=$userListRow['id'];
           $repKeyArray=$_POST['reprocessingKeys'];
$i = 0;
        foreach ( $repKeyArray as $editID => $value) {


        

     
'include/reports/reprocessingLetters/checkRequest.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/deposit.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/presentEmpl.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/priorEmpl.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/mortgage.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/gift.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/vvoe.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/rental.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/borrCert.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/otherIncome.php?reprocessingKey='. $value;
'include/reports/reprocessingLetters/VVOE.php?reprocessingKey='. $value;
             $i++;   
             }
             
             ?>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jagadishwor Dulal
Jagadishwor Dulal
Flag of Nepal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rcowen00

ASKER

Thank you for your responses.  Ray the client doesn't want to click more than one link, so I am going to try Proculopsis suggestion.  I will get back to you.
I ended up using if statements within the FPDF document to open all letters in one window.  Thanks for the assistance gentlemen.