Okay, problem solved. My original code should have worked just fine - the text editor I happened to use
once added an additional hidden character to a Paste function, which effectively made it so that the variable being set in the PHP file was
not the same variable being called by the template code.
I hate it when problems of this nature surface. Ai.
Thank you, everyone, for your help.