trying to pass php variable into fpdf

Hello.
I have a formated php string that I am trying to pass into FPDF in order to create a pdf document on the fly.

But the formatting is off.
It displays the <p> etc with no line breaks.
Can someone help me?

Or is there a better program for creating pdf's off of PHP pages?
<?php


$reviewtext ="<h1 align='center'><br>BAREBOAT CHARTER REVIEW</h1>
<b>Name:</b>  ".$name.
"<br><b>Yacht:</b>  ".$yacht.
"<br><b>Charter Dates:</b>  ".$charter_dates.
"<p>".$intro."</p>
<p>1.  ".$question_accommodating."
<br>".$answer_accommodating."</p>
<p>2.  ".$question_clean."
<br>".$answer_clean."</p>
<p>3.  ".$question_equipment."
<br>".$answer_equipment."</p>
<p>4.  ".$question_ventilated."
<br>".$answer_ventilated."</p>
<p>5.  ".$question_familiarize."
<br>".$answer_familiarize."</p>
<p>6.  ".$question_like."
<br>".$answer_like."</p>
<p>7.  ".$question_help."
<br>".$answer_help."</p>
<p>8.  ".$question_post."
<br>".$answer_post."</p>
<p>9.  ".$question_comments."
<br>".$answer_comments."</p>";

//echo $reviewtext;
//echo $reviewid;





//require('fpdf.php');
//$pdf=new FPDF();
//$pdf->AddPage();
//$pdf->SetFont('Arial','B',16);
//$pdf->Cell(40,10,$reviewtext);
//$pdf->Output($path.$reviewid.".pdf","F");  ?>
<?php
require('fpdf.php');

class PDF extends FPDF
{
var $B;
var $I;
var $U;
var $HREF;

function PDF($orientation='P',$unit='mm',$format='A4')
{
    //Call parent constructor
    $this->FPDF($orientation,$unit,$format);
    //Initialization
    $this->B=0;
    $this->I=0;
    $this->U=0;
    $this->HREF='';
}

function WriteHTML($html)
{
    //HTML parser
    $html=str_replace("\n",' ',$html);
    $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);
    foreach($a as $i=>$e)
    {
        if($i%2==0)
        {
            //Text
            if($this->HREF)
                $this->PutLink($this->HREF,$e);
            else
                $this->Write(5,$e);
        }
        else
        {
            //Tag
            if($e[0]=='/')
                $this->CloseTag(strtoupper(substr($e,1)));
            else
            {
                //Extract attributes
                $a2=explode(' ',$e);
                $tag=strtoupper(array_shift($a2));
                $attr=array();
                foreach($a2 as $v)
                {
                    if(preg_match('/([^=]*)=["\']?([^"\']*)/',$v,$a3))
                        $attr[strtoupper($a3[1])]=$a3[2];
                }
                $this->OpenTag($tag,$attr);
            }
        }
    }
}

function OpenTag($tag,$attr)
{
    //Opening tag
    if($tag=='B' || $tag=='I' || $tag=='U')
        $this->SetStyle($tag,true);
    if($tag=='A')
        $this->HREF=$attr['HREF'];
    if($tag=='BR')
        $this->Ln(5);
}

function CloseTag($tag)
{
    //Closing tag
    if($tag=='B' || $tag=='I' || $tag=='U')
        $this->SetStyle($tag,false);
    if($tag=='A')
        $this->HREF='';
}

function SetStyle($tag,$enable)
{
    //Modify style and select corresponding font
    $this->$tag+=($enable ? 1 : -1);
    $style='';
    foreach(array('B','I','U') as $s)
    {
        if($this->$s>0)
            $style.=$s;
    }
    $this->SetFont('',$style);
}

function PutLink($URL,$txt)
{
    //Put a hyperlink
    $this->SetTextColor(0,0,255);
    $this->SetStyle('U',true);
    $this->Write(5,$txt,$URL);
    $this->SetStyle('U',false);
    $this->SetTextColor(0);
}
}

$html='You can now easily print text mixing different styles: <b>bold</b>, <i>italic</i>,
<u>underlined</u>, or <b><i><u>all at once</u></i></b>!<br><br>You can also insert links on
text, such as <a href="http://www.fpdf.org">www.fpdf.org</a>, or on an image: click on the logo.';

$pdf=new PDF();
//First page
$pdf->AddPage();
$pdf->SetFont('Arial','',20);
$pdf->Write(5,$reviewtext);
$pdf->SetFont('','U');
$link=$pdf->AddLink();
$pdf->Write(5,'here',$link);
$pdf->SetFont('');
//Second page
$pdf->AddPage();
$pdf->SetLink($link);
$pdf->Image('http://www.visailing.com/_images/templates/footer-logo.gif',10,12,30,0,'','http://www.visailing.com');
$pdf->SetLeftMargin(45);
$pdf->SetFontSize(14);
$pdf->WriteHTML($reviewtext);

$pdf->Output($path.$reviewid.".pdf","F");
?>

Open in new window

Razzmataz73Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hieloCommented:
try:
$reviewtext =<<<REVIEWTEXT
<h1 align='center'><br>BAREBOAT CHARTER REVIEW</h1>
<b>Name:</b>  {$name}

<br><b>Yacht:</b>  {$yacht}

<br><b>Charter Dates:</b>  {$charter_dates}

<p>{$intro}</p>

<p>1.  {$question_accommodating}
<br>{$answer_accommodating}</p>

<p>2.  {$question_clean}
<br>{$answer_clean}</p>

<p>3.  {$question_equipment}
<br>{$answer_equipment}</p>

<p>4.  {$question_ventilated}
<br>{$answer_ventilated}</p>

<p>5.  {$question_familiarize}
<br>{$answer_familiarize}</p>

<p>6.  {$question_like}
<br>{$answer_like}</p>

<p>7.  {$question_help}
<br>{$answer_help}</p>

<p>8.  {$question_post}
<br>{$answer_post}</p>

<p>9.  {$question_comments}
<br>{$answer_comments}</p>
REVIEWTEXT;

Open in new window

0
Ray PaseurCommented:
In the original code snippet at line 65 the newline characters are translated into blanks.  Not sure if that is having an effect on the output or not.  But I am fairly sure that sending HTML markup tags to FPDF is not the best way to go.

When I have used FPDF, I have used it very differently from the way you are using it here.  Instead of feeding it HTML, I have used the FPDF methods to directly place the text I want onto the FPDF object.  The reasons for this are manifold. First, HTML is a markup language, not a formatting language.  HTML has no inherent respect for absolute positioning (which is what is required on the printed page) and that is why we use CSS to adjust the presentation of the data.  The PDF format is not concerned with CSS or markup, only with formatting and layout - which makes it the perfect tool for creating the printed page.  

The advantages of direct placement through FPDF methods include the ability to structure the page exactly the way you want it - choosing fonts, placing text and images, etc.  You just substitute PHP variables with the data you need and the results are predictable to within 1/100 inch.
0
Razzmataz73Author Commented:
Passeur,
Can you tell me how to put this into FPDF using your suggestion?

$reviewtext ="<h1 align='center'><br>BAREBOAT CHARTER REVIEW</h1>
<b>Name:</b>  ".$name.
"<br><b>Yacht:</b>  ".$yacht.
"<br><b>Charter Dates:</b>  ".$charter_dates.
"<br><b>Broker:</b>  ".$brokername.
"<br><b>Area Cruised:</b>  ".$area.
"<p>".$intro."</p>
<p>1.  ".$question_accommodating."
<br>".$answer_accommodating."</p>
<p>2.  ".$question_clean."
<br>".$answer_clean."</p>
<p>3.  ".$question_equipment."
<br>".$answer_equipment."</p>
<p>4.  ".$question_ventilated."
<br>".$answer_ventilated."</p>
<p>5.  ".$question_familiarize."
<br>".$answer_familiarize."</p>
<p>6.  ".$question_like."
<br>".$answer_like."</p>
<p>7.  ".$question_help."
<br>".$answer_help."</p>
<p>8.  ".$question_post."
<br>".$answer_post."</p>
<p>9.  ".$question_comments."
<br>".$answer_comments."</p>";

Open in new window

0
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Razzmataz73Author Commented:
hielo it didn't work.
It just created a pdf with the code printed out on it.
0
hieloCommented:

Using your original code, try changing:
function OpenTag($tag,$attr)
{
    //Opening tag
    if($tag=='B' || $tag=='I' || $tag=='U')
        $this->SetStyle($tag,true);
    if($tag=='A')
        $this->HREF=$attr['HREF'];
    if($tag=='BR')
        $this->Ln(5);
}

to:
function OpenTag($tag,$attr)
{
    //Opening tag
    if($tag=='B' || $tag=='I' || $tag=='U')
        $this->SetStyle($tag,true);
    if($tag=='A')
        $this->HREF=$attr['HREF'];
    if($tag=='BR')
        $this->Ln(5);

    if($tag=='P'){
        $this->Ln(5);
        $this->Ln(5);
	}
}

Open in new window

0
Razzmataz73Author Commented:
Nope still messed up.
You can see what the pdf looks like at:
http://www.visailing.com/charter-reviews/bareboats/38i.pdf
0
hieloCommented:
save this as hielo.php and try it:
<?php
require('fpdf.php');
$reviewtext ="<h1 align='center'><br>BAREBOAT CHARTER REVIEW</h1>
<b>Name:</b>  ".$name.
"<br><b>Yacht:</b>  ".$yacht.
"<br><b>Charter Dates:</b>  ".$charter_dates.
"<p>".$intro."</p>
<p>1.  ".$question_accommodating."
<br>".$answer_accommodating."</p>
<p>2.  ".$question_clean."
<br>".$answer_clean."</p>
<p>3.  ".$question_equipment."
<br>".$answer_equipment."</p>
<p>4.  ".$question_ventilated."
<br>".$answer_ventilated."</p>
<p>5.  ".$question_familiarize."
<br>".$answer_familiarize."</p>
<p>6.  ".$question_like."
<br>".$answer_like."</p>
<p>7.  ".$question_help."
<br>".$answer_help."</p>
<p>8.  ".$question_post."
<br>".$answer_post."</p>
<p>9.  ".$question_comments."
<br>".$answer_comments."</p>";

class PDF extends FPDF
{
var $B;
var $I;
var $U;
var $HREF;

function PDF($orientation='P',$unit='mm',$format='A4')
{
    //Call parent constructor
    $this->FPDF($orientation,$unit,$format);
    //Initialization
    $this->B=0;
    $this->I=0;
    $this->U=0;
    $this->HREF='';
}

function WriteHTML($html)
{
    //HTML parser
    $html=str_replace("\n",' ',$html);
    $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);
    foreach($a as $i=>$e)
    {
        if($i%2==0)
        {
            //Text
            if($this->HREF)
                $this->PutLink($this->HREF,$e);
            else
                $this->Write(5,$e);
        }
        else
        {
            //Tag
            if($e[0]=='/')
                $this->CloseTag(strtoupper(substr($e,1)));
            else
            {
                //Extract attributes
                $a2=explode(' ',$e);
                $tag=strtoupper(array_shift($a2));
                $attr=array();
                foreach($a2 as $v)
                {
                    if(preg_match('/([^=]*)=["\']?([^"\']*)/',$v,$a3))
                        $attr[strtoupper($a3[1])]=$a3[2];
                }
                $this->OpenTag($tag,$attr);
            }
        }
    }
}

function OpenTag($tag,$attr)
{
    //Opening tag
    if($tag=='B' || $tag=='I' || $tag=='U')
        $this->SetStyle($tag,true);
    if($tag=='A')
        $this->HREF=$attr['HREF'];
    if($tag=='BR')
        $this->Ln(5);
}

function CloseTag($tag)
{
    //Closing tag
    if($tag=='B' || $tag=='I' || $tag=='U')
        $this->SetStyle($tag,false);
    if($tag=='A')
        $this->HREF='';
    if($tag=='P')
        $this->Ln(10);
}

function SetStyle($tag,$enable)
{
    //Modify style and select corresponding font
    $this->$tag+=($enable ? 1 : -1);
    $style='';
    foreach(array('B','I','U') as $s)
    {
        if($this->$s>0)
            $style.=$s;
    }
    $this->SetFont('',$style);
}

function PutLink($URL,$txt)
{
    //Put a hyperlink
    $this->SetTextColor(0,0,255);
    $this->SetStyle('U',true);
    $this->Write(5,$txt,$URL);
    $this->SetStyle('U',false);
    $this->SetTextColor(0);
}
}

$html='<p>You can now easily print text mixing different styles: </p><p><b>bold</b>,</p> <p><i>italic</i>,</p>
<p><u>underlined</u>, or <b><i><u>all at once</u></i></b>!<br><br>You can also insert links on
text, such as <a href="http://www.fpdf.org">www.fpdf.org</a>, or on an image: click on the logo.</p>';

$pdf=new PDF();
//First page
$pdf->AddPage();
$pdf->SetFont('Arial','',20);
$pdf->Write(5,'To find out what\'s new in this tutorial, click ');
$pdf->SetFont('','U');
$link=$pdf->AddLink();
$pdf->Write(5,'here',$link);
$pdf->WriteHTML($reviewtext );
$pdf->SetFont('');
$pdf->Output();
?>

Open in new window

0
Ray PaseurCommented:
This shows the way I have used FPDF.  HTH, ~Ray
<?php // RAY_temp_fpdf_demo.php
error_reporting(E_ALL);

/* DATA FROM THE POST AT EE
$reviewtext ="<h1 align='center'><br>BAREBOAT CHARTER REVIEW</h1>
<b>Name:</b>  ".$name.
"<br><b>Yacht:</b>  ".$yacht.
"<br><b>Charter Dates:</b>  ".$charter_dates.
"<br><b>Broker:</b>  ".$brokername.
"<br><b>Area Cruised:</b>  ".$area.
"<p>".$intro."</p>
<p>1.  ".$question_accommodating."
<br>".$answer_accommodating."</p>
<p>2.  ".$question_clean."
<br>".$answer_clean."</p>
<p>3.  ".$question_equipment."
<br>".$answer_equipment."</p>
<p>4.  ".$question_ventilated."
<br>".$answer_ventilated."</p>
<p>5.  ".$question_familiarize."
<br>".$answer_familiarize."</p>
<p>6.  ".$question_like."
<br>".$answer_like."</p>
<p>7.  ".$question_help."
<br>".$answer_help."</p>
<p>8.  ".$question_post."
<br>".$answer_post."</p>
<p>9.  ".$question_comments."
<br>".$answer_comments."</p>";
*/ // END OF EE POST

// SIMULATING SOME VARIABLE VALUES TO ILLUSTRATE DIRECT PLACEMENT INTO FPDF DOCUMENTS
$title = 'BAREBOAT CHARTER REVIEW';
$name  = 'Ray Paseur';
$yacht = 'Myott';
$dates = 'June 2010';
$area  = 'Chesapeake Bay';

// BRING IN THE PDF THING
require_once('fpdf16/fpdf.php');

// SYNTHESIZE THE PDF FILE NAME
$pdf_file_link	= '/junk/' . 'temp_pdf_color' . '.pdf';
$pdf_file_name	= getcwd() . $pdf_file_link;

// PLACE THE TITLE IN WHITE ON A BLUE BACKGROUND
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->SetFillColor(0,0,255);
$pdf->SetTextColor(255,255,255);
$pdf->Cell(90,10,$title,0,2,'L', TRUE);

// SET SOME COORDINATES TO ILLUSTRATE RELATIVE PLACEMENT OF DATA
$x = 20;
$y = 30;

// SET THE 'STYLE' INFORMATION FOR COLOR, FONT, AND SIZE
$pdf->SetTextColor(0,0,0);
$pdf->SetFont('Arial','',10);

// PLACE SOME TEXT ON THE PDF
$pdf->Text($x+5,$y+20,"NAME: $name");
$pdf->Text($x+5,$y+30,"YACHT: $yacht");
$pdf->Text($x+5,$y+40,"DATES/AREA: $dates / $area");

// WRITE THE PDF TO DISK
$pdf->Output($pdf_file_name,'F');

// PRESENT A LINK
echo "<a target=\"my_PDF\" href=\"$pdf_file_link\">PDF</a>\n";

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Razzmataz73Author Commented:
I have got it to work using the code bellow.
Now I want to take that newly generated pdf and embedd it in a web page and then save that webpage (overwritting a previous version).

Any ideas on how I would go about that?

$pdf=new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetTextColor(0,117,136);
$pdf->SetFont('Times','B',12);
//$pdf->Cell(40,10,'Hello World !',1);
$pdf->Cell(194,10,'BAREBOAT CHARTER REVIEW',0,1,'C');
$pdf->Ln(10);
$pdf->SetFont('Arial','',10);
$pdf->SetTextColor(0,117,136);
$pdf->MultiCell(190,5,'');
//$pdf->Cell(0,5,$rt_name,0,1);
$pdf->Write(5,$rt_name);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5, $name);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$rt_yacht);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5, $yacht);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$rt_dates);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5, $charter_dates);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$rt_broker);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5, $brokername);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$rt_area);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5, $area);
$pdf->Ln(4);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$intro);

//$pdf->Cell(0,5,$intro,0,1);
$pdf->Ln(10);
$pdf->Write(5,$question_accommodating);
$pdf->Ln(4);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5,$answer_accommodating);
$pdf->Ln(4);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$question_clean);
$pdf->Ln(4);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5,$answer_clean);
$pdf->Ln(4);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$question_equipment);
$pdf->Ln(4);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5,$answer_equipment);
$pdf->Ln(4);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$question_ventilated);
$pdf->Ln(4);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5,$answer_ventilated);
$pdf->Ln(4);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$question_familiarize);
$pdf->Ln(4);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5,$answer_familiarize);
$pdf->Ln(4);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$question_like);
$pdf->Ln(4);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5,$answer_like);
$pdf->Ln(4);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$question_help);
$pdf->Ln(4);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5,$answer_help);
$pdf->Ln(4);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$question_post);
$pdf->Ln(4);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5,$answer_post);
$pdf->Ln(4);
$pdf->Ln(4);
$pdf->SetTextColor(0,117,136);
$pdf->Write(5,$question_comments);
$pdf->Ln(4);
$pdf->SetTextColor(1,72,84);
$pdf->Write(5,$answer_comments);
$pdf->Ln(4);

//$pdf->SetFont('Times','',12);
//$pdf->Cell(60,10,'BAREBOAT CHARTER REVIEW',0,1,'C');
//$pdf->SetFont('Times','',10);
//$pdf->Cell(40,10,$reviewtext1);
//$pdf->Cell(40,20,$reviewtext2);
$pdf->Output($pdflink,"F");

Open in new window

0
Razzmataz73Author Commented:
ok,
I figured out how to embedd the pdf using the code bellow.
I have an accept/reject review page and when they hit accept it saves it to a database and creates the pdf (all working perfectly) now I want to post the new review (and an embedded pdf) on top of the old review dynamically.

So it is going to need to take the code bellow, paste it into an existing php page and then save the page.

How do I do that?

$reviewcode="<!-- REVIEW CODE -->
<p>&nbsp;</p>
<p><strong>BVI YACHT CHARTERS ". $yacht."</strong></p><p><br>
<OBJECT CLASSID='clsid:CA8A9780-280D-11CF-A24D-444553540000' WIDTH=600 HEIGHT=820> 
    <PARAM NAME='SRC' VALUE='".$pdflink."#navpanes=0&scrollbar=1&toolbar=0'> 
    <EMBED SRC=".$pdflink."#navpanes=0&scrollbar=1&toolbar=0' HEIGHT=820 WIDTH=600><NOEMBED>Your browser does not support embedded PDF files.</NOEMBED></EMBED>
  </OBJECT>
</p>
<hr width='532' color='#0099FF'>
<!-- END REVIEW CODE -->";

Open in new window

0
Razzmataz73Author Commented:
I am thinking about doing this with a string replace, but this is my first time doing this.
This is what I have so far (it isn't working) I will continue to research but if someone has a fix that would be great.
:)
$reviewstring = "bviyachtcharters-references.php";
$placeholder =" <!-- DO NOT REMOVE!!  NEEDED FOR REVIEW SYSTEM TO WORK!!!-->";

$reviewcode =" <!-- DO NOT REMOVE!!  NEEDED FOR REVIEW SYSTEM TO WORK!!!-->
<!-- REVIEW CODE -->
<p>&nbsp;</p>
<p><strong>BVI YACHT CHARTERS ". $yacht."</strong></p><p><br>
<OBJECT CLASSID='clsid:CA8A9780-280D-11CF-A24D-444553540000' WIDTH=600 HEIGHT=820> 
    <PARAM NAME='SRC' VALUE='".$pdflink."#navpanes=0&scrollbar=1&toolbar=0'> 
    <EMBED SRC=".$pdflink."#navpanes=0&scrollbar=1&toolbar=0' HEIGHT=820 WIDTH=600><NOEMBED>Your browser does not support embedded PDF files.</NOEMBED></EMBED>
  </OBJECT>
</p>
<hr width='532' color='#0099FF'>
<!-- END REVIEW CODE -->";

$filedata = file_get_contents($reviewstring); 
  
  
// GET FILE CONTENTS 
$filedata = file_get_contents($filename); 
  
// REPLACE 
$filedata = str_replace($placeholder,$reviewcode, $filedata); 
  
// MAKE NEW FILE NAME 
$newfilename = str_replace('bviyachtcharters-references.php', "bviyachtcharters-references.php", $filename); 
  
// WRITE FILE 
file_put_contents($newfilename, $filedata);

Open in new window

0
Ray PaseurCommented:
"I want to take that newly generated pdf and embedd it in a web page"  

Why not just put a link on the screen?  Most clients' browsers will open the PDF just fine.

Anyway, that seems like a completely different line of question, and I think the original question that was posted here has been thoroughly answered.  Time to move forward!

Best regards, ~Ray

0
Razzmataz73Author Commented:
This answer lead me to the complete answer I needed.  Thanks.
:)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.