This topic is locked

Simple Field Merge

7/21/2008 3:17:23 AM
PHPRunner General questions
bbarker author

Based upon previous postings here, this is what I thought I read.
I'm trying to produce this as a solution: month/year/day.pdf
But I get--> Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\inetpub\wwwroot
-----------------------------

function BeforeAdd (custom)

----------------------------

{

$values["filelocation"] = $values["Month"].""/"".$values["Year"].""/"".$values["Page"]."".pdf"";

return true;

}

------------------------------
What am I doing wrong?

J
Jane 7/21/2008

Try to use this one:

$values["filelocation"] = $values["Month"]."/".$values["Year"]."/".$values["Page"].".pdf";

bbarker author 7/21/2008

For anyone else wanting to do the same thing... I modified it some more.

My final linked format is http://url/month/year/mmmyyyypage.pdf

(Where page is = 1 to 99, or Cover, Inside Cover, Insert, Inside Back Cover, Back Cover
And I added this to the BEFORE RECORD ADDED, and the BEFORE RECORD UPDATED areas.
$values["File"] = $values["Month"]."/".$values["Year"]."/".$values["Month"].$values["Year"].$values["Page"].".pdf";