I have a php page that calls an include page that includes a form with the following code within the form tag:
<form action="pagename.php" method="post" enctype="multipart/form-data">
The php page allows me to browse for the name of a file that I am attaching to an e-mail before I send it. That same file is my html directory of my web site.
Before i added the 'enctype="multipart/form-data"' language to the form tag, the file attached to the e-mail I was able to send would either not be attached or would be a blank text file. The file is a pdf file.
Now that I have added the 'enctype="multipart/form-data"' language I am having difficulty with the page that I use to confirm the data that I typed in on the php page. The text that appears on the confirmation page where the name of the file should be reads "/tmp/phpO9bfXd". Where did this come from.
Now of course when I go to submit my request to send the e-mail with the following code -- $content = fread(fopen($file,"r"),filesize($file)); -- I get the following error:
Warning: fopen("/tmp/phpO9bfXd", "r") - No such file or directory in...
Can anyone tell me what this is about?