File name of email attachment
Posted on 2016-09-29
I build the filename of an email attachment based on a "property description".
In a particular case, the property description is #68 Residence.
That is passed as a $_GET variable to the emailing routine; I'm guessing that either # is not allowed in a file name (or more likely) # does not get properly passed in the query string.
Should I just replace # with # in the query string? Not sure if that stuff in a file name would work.
Or maybe better yet, I could probably just throw away the #, not needed in this case, but there are probably other special characters.