email attachment problem



I'm new to PHP, so forgive me.

I'm trying to create a simple form that will send an email with a file
attachment. I downloaded the following code:

http://www.sitepoint.com/article/advanced-email-php

and it works. But for some reason, the attached file has underscores
before and after the file name. Ex, if I'm attaching file xyz,pdf, it
shows up as _xyz.pdf_ in the email.

For the life of me, I can't figure out how to remove the underscores.

I hope this is a simple fix.

Thanks

Dan

.



Relevant Pages

  • Re: Newbie question
    ... I have underscores in all those fields. ... >> I am trying to post a record to a mySQL table from PHP. ... > DeeDee, don't press that button! ...
    (comp.lang.php)
  • Re: method for creating a list of unique strings?
    ... http://us.php.net/reserved.variables that in POST array indices, ... automatically converts periods to underscores. ... unless period are reserved characters in array indices. ...
    (comp.lang.php)
  • dot turns into underscore in form data
    ... I've seen some weird behaviour where PHP (I think PHP is the ... culprit) turns dots into underscores in the names in my form data. ... (I am running Apache on a RH9 Linux machine; ...
    (comp.lang.php)
  • Re: Problem with breqn and citations that contain underscores
    ... This option seems to fix the problem with underscores in citeations. ... Prev by Date: ...
    (comp.text.tex)