PDA

View Full Version : Mail Form Help


manifestsog
09-06-2001, 07:28 AM
Hi,
I created a mail form in Front Page and enabled save to email. And saved it to the server but when I call for the form it views accepts imput but when you submit the form I receive a page not found error. Help:confused:

reuben
09-06-2001, 10:06 AM
What is the url?

manifestsog
09-06-2001, 10:18 AM
skbi.manifestsog.org

reuben
09-06-2001, 10:23 AM
It looks like you are trying to post the form to your own computer instead of the server.

<FORM METHOD="POST" ACTION="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="C:\My Documents\Registration" S-Format="HTML/BR" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="skbi@manifestsog.org" B-Email-Label-Fields="TRUE" S-Builtin-Fields --><OL>
<LI>

nsr81
09-06-2001, 11:18 AM
Yup,



&lt;FORM METHOD="POST" ACTION="--WEBBOT-SELF--"&gt;
&lt;!--webbot bot="SaveResults" U-File="C:\My Documents\Registration" S-Format="HTML/BR"
S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE"
S-Email-Address="skbi@manifestsog.org" B-Email-Label-Fields="TRUE" S-Builtin-Fields -- &gt;



C:\My Documents\Registration doesn't exist on the servers. and I also encounter 404 error that "--WEBBOT-SELF--" not found.

manifestsog
09-06-2001, 12:20 PM
Well I tried that, I changed the code to point to the server in place of the erant code but now there is no action, whereas before it was giving an error message. :(

reuben
09-06-2001, 12:25 PM
It now appears that you don't have the form tags at the top.

manifestsog
09-06-2001, 04:50 PM
Well,
I think I solved the form tag issue, but still receving an error message. I changed the code to point to the server, what could I be missing?

reuben
09-06-2001, 04:56 PM
I'm not actually sure of the format that needs to be used for the frontpage forms, so I'm not sure what to suggest. I would assume that posting the results to

www.manifestsog.org\_private\form_results.txt

would be wrong, but I'm not sure what it should be.

manifestsog
09-08-2001, 05:36 AM
Is anyone familiar with this code, and what needs to be in place for it to happen?

FORM METHOD="POST" ACTION="--WEBBOT-SELF
--webbot bot="SaveResults" server\_private\formrslt.htm" s-format="HTML/DL" b-label-fields="TRUE"

My take on this is the code attempts to save the form to the host site :
http://server.org/--WEBBOT-SELF ,

but I'm still receiving a 404 error

David
09-08-2001, 07:23 AM
Frontpage tends to actually change the code when you upload the files, You might find it easier to use the formmail script:

What you need is change the form so that it contains a set of hidden fields, these tell the cgi script what to do:



&lt;FORM ACTION = "/cgi-sys/FormMail.cgi" METHOD = "POST"&gt;
&lt;input type=hidden name="recipient" value="ANYONE@YOURDOMAIN.COM"&gt;
&lt;input type=hidden name="subject" value="SUBJECT"&gt;
&lt;input type=hidden name="return_link_title" value="TITLE"&gt;
&lt;input type=hidden name="redirect" value="http://YOURDOMAIN.COM/PAGE.HTML"&gt;

&lt;textarea name="message"&gt; &lt;/textarea&gt;
&lt;input type="submit" name="Submit" value="Submit"&gt;
&lt;/form&gt;


recipient is the e-mail you want the data sent to (normally yourself) The e-mail address must be on your domain

subject is the subject

and redirect is the page the user will be sent to after the form is submitted

You then can add visible fields for the data you want the user to fill in e.g. the textarea above. You also need a submit button as shown above

hope this helps