form email with attached file php

Asked by:
DillengerX / 33 Points
Time:
2012-03-29 11:30 am EST
Category:
How To
Hits:
1,376
having trouble with a form that is supposed to allow me to attach an image.

i did install PEAR and made sure to include mail.php and mime.php - they are there in in my /home/username/php/Mail dir. so my script links to them and reads

include_once('/home/username/php/Mail/mail.php');
include_once('/home/username/php/Mail/mime.php');

that did get me past 4 errors that said those files were not found when i submitted the form. i appeared to have missed the 1st forward slash before home. however - i added the slash, all those 4 errors are gone, but going to that page doesn't even show the form anymore - it shows simply 1 error line which is :

Fatal error: Class 'Mail' not found in /home/ufcfan5/php/Mail/mail.php on line 51


you gotta forgive me in advance here - i am playing around with new territory. i did search through PEAR as well for answers before asking here :) any help would be great ! --- oh yes link is here ---> www.ufcfan.net simply click on the form text link

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User

0

ChristiNi
Staff
13,688 Points
2012-03-29 1:48 pm EST
Hello DillengerX,

Thank you for the clarification and the update. Unfortunately while I was looking into this for you changes were being made to the files. When troubleshooting these types of issues, we really need to be able to look at the files and the code in those files to assist further. We also ask that you not make changes to the files while we are investigating and troubleshooting the issue. Once you have the files in place and you are ready to have us take a look at this for you, please feel free to either update this question or add a comment below. We'll be happy to assist you.

Regards,

Christi N.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.