View Full Version : PHP and mail forms


melaniejk
06-24-2004, 02:53 PM
Hi.
I just realized that my web host gives me something that lets me put a mail form on my site with a file upload to be sent by email.

It works on the page they created:
www.ancestralbranches.com/mailform/forms/form1.html

But, I can't get it to work on:
http://www.ancestralbranches.com/tombstones/submit3.html
(A testing page)

I did resize it. But, that shouldn't make a difference, right?

The PHP program did say something about "Give read and write permissions to the forms directory (located under the php formgen directory). I looked at that but who do I give permission to?
It has boxes to check for : user / group / world.

I would appreciate some insight from someone who uses php.
Thank you. :D

GByte
06-24-2004, 03:39 PM
Hi Melanie

You need to change the permission of the directory that the files/images are uploaded to.

This is usually done using CHMOD which is a UNIX command that lets you set the permissions for directories. Do you use an ftp program to access your server?

If you do, within the prog you can usually right click on a directory on your server and change the CHMOD to 777. Other than that I would try changing the permissions to "world" where you have the check boxes and try that.

CHMOD 777 sets a directories permission to read/write/executable by everyone so I guess in your case it would be "World"

melaniejk
06-24-2004, 08:18 PM
Hi.
Ok, I changed the permissions. I checked the boxes for world which turned it to 777.

But, it's still not working.

GByte
06-25-2004, 04:16 AM
Hi, just to check what is it thats not working, is it the file upload as I just took it as that? When I submit the form it goes to page not found? is this because you have removed it? or is that whats not working?

melaniejk
06-27-2004, 06:32 PM
I think that's what is not working. I'm not sure.
I get page not found also.

melaniejk
06-28-2004, 02:40 PM
Thanks GByte for all your help.
The form is now up and running.
You're the greatest.
:)