PDA

View Full Version : PLEASE HELP could someone walk me through setting up the formmail script?


Esquire
03-31-2002, 10:32 PM
Hi,

I have been trying all day to get this Formmail.pl thing to work and it just isn't happening. Would someone be nice enough to explain to me step-by-step how to get the Form to work?

Specifically:

1. I have built my form in golive, labelled all the buttons and text boxes correctly....what address do I put for the "Action"?

2. Following the instructions for configuring the script seemed easy enough...

I changed the top to : #!/usr/bin/perl

and the following codes i changed :

$mailprog = '/usr/sbin/sendmail';

@referers = ('my email','myIP')

@recipients = ('^my email')


Is this all correct?
I then uploaded the Formmail.pl into my cgi-bin folder.


What did I do wrong? :D because its not working

Also there is something in the formmail.pl about actions? and that I can specify an .html page to go to after hitting the submit button...how do I change this?

This is about it, i don't need to configure any of the more advanced options.

Oh and if this helps any, this is the error im getting when trying to send:

"Not Found
The requested URL /public_html/cgi-bin/FormMail.pl was not found on this server.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "


Thanks!

Stewart
03-31-2002, 10:39 PM
*1. I have built my form in golive, labelled all the buttons and text boxes correctly....what address do I put for the "Action"?

- the action is where the form contents are to be sent, ie, you can use the builtin hostrocket formmail at http://www.*yourdomain*.com/cgi-sys/FormMail.cgi

this should work if you use the hidden form field "recipient" that is described in your controlpanel:

<type=hidden name="recipient" value="email@yourdomain.com">

try it now...

Esquire
04-01-2002, 01:36 AM
Thanks for the quick reply Stewart,


I labeled the action as you said and inserted 2 hidden fields into the form, labeling one 'recipient' and the other 'subject' as I saw from the instructions in the control panel. When I tested it, it gave me a page called: Form Submission Results and listed what was typed in each field.... would it be possible to change it so after someone pressed the submit button that it goes to a premade page I made?

Thanks!:)

Stewart
04-01-2002, 06:37 AM
yup, if you look in the list of hidden fields you can use there, one of them is a redirect, so it goes instantly to a page you specified afterwards.