PDA

View Full Version : Mail Form Help Please


kdirt36
12-24-08, 04:51 AM
Hi Everybody. Merry Christmas and Happy New Year to all ! I've created a website that I want to put a form mailer or contact page in. I have already built the form page with 3 different extensions. PHP,HTM & HTML I didn't know where to put them so I created a folder called "mail" in the cgi-bin and installed them there. And also put them in the htdocs folder. Here are the 3 links:

http://hose1.com/cgi-bin/mail/submissions.php

http://hose1.com/cgi-bin/mail/submissions.htm

http://hose1.com/cgi-bin/mail/submissions.html

I've also created a reply page here:

http://hose1.com/thankyou.htm

When I try them in the html or htm format, I get page not found. When I try the php page, The text in the text fields just disappear and the form isn't sent. Could sombody right click on the background of the pages to view the source code and see if I'm missing anything? Maybe a piece of code? Or maybe I have them in the wrong folder? I have them set to go to my powweb email box but I get nothing. Thanks for any and all hrlp. God Bless, Eddie

tpoynton
12-24-08, 07:39 AM
the way it works is this:

1 - create the html page with the form and form fields (this looks OK).

2 - create/use a script to process the form information.

While some people dont like this idea, I think it works fine - powweb supplies a form processing script for email (http://members.powweb.com/member/formEmail.bml). The positive with this script is powweb maintains it, ensures it is secure. negative is configurability...but this should work fine for you.

You could also do a google search for 'php form mail script' and you'd find several.

so, move an html page out of the cgi bin, embed the needed code in the form, configure the options for the script, and test

kdirt36
12-26-08, 04:43 PM
Thanks tpoynton, I tried that but for some reason, it doesn't work. The program I use to make the website has a program in it for making form mailers but It seems like it's leaving out something. I finally had to switch tactics and use a different program called JobForm. (Jobform.com) It has it's good and bad sides. You configure it right on their website.

One more question: When I used the program to upload files, I got this error in the cgi error log.

"PHP Warning: MAX_FILE_SIZE of 25 bytes exceeded - file [FileUpload1=C:\Documents and Settings\Administrator\My Documents\My Pictures\cdb\cdb1.jpg] not saved in Unknown on line 0

Any idea how to increase the file size? 25 bytes is nothing. Thanks again for your help tpoynton, Eddie

snowmaker
12-26-08, 05:00 PM
You can edit your PHP.INI in OPS, the link directly to it is in tpoyntons' sig, but I don't think this is the issue here. I believe the max_file_size variable by default is above 25 bytes, it's 10 Megs I think..

tpoynton
12-26-08, 05:22 PM
I think you are making it more complicated than it needs to be...it is a simple form that just sends an email. powweb's script is easy to setup; an alternative is at http://tips-scripts.com/form_mail

kdirt36
12-26-08, 05:23 PM
OK. Thanks snowmaker. I'll see if I can find it in the control panel. I submitted a ticket yesterday to powweb so hopefully they'll be able to help.Thanks again Bud