in reply to String assignment oddity

$form{source} = "files/blanks/state/$state/$type/contract.pdf";

Are you sure you haven't coded it as:
$form{source} = 'files/blanks/state/$state/$type/contract.pdf';
That would explain the failure.

Cheers,
Rob