Creating a form using front page 2003

J

James

Hello,

I am hoping that someone may be able to help me as I am totally stuck

I have a limited understanding of website design and computing. To date I
have managed to build a website using microsoft front page 2003 and have
published this site, with my hosting being provided by 123-reg.co.uk

Unfortnuately I am now totally stuck.

I have included a form on my site which visitors complete when visiting my
site.
However I cannot access/obtain the information provided by my visitors.

I would like this information sent to me via email.

The support section of my hosting providers web site says that I need to
download a formmail script - and provides the following guidance

You will need to download the FormMail Script. This can be found at "Matts
Script Archive ".

Next, edit the FormMail file in a text editor (e.g. Notepad) and make sure
the top of the file is correct.....

I have downloaded the script and have edited it as per the guidance provided.

However, at this point I am now lost. The next section of the guidance states:

"This file can now be saved and uploaded to your website. Make sure you
upload the file in ASCII/text mode and NOT in binary mode. Also, ensure it
has read and execute permissions (755) for user group and all, as well as
write permissions for the user. "

I do not understand what the above paragraph means - particularly in
relation to uploading the file to me site - can anyone help me.

The guidance then states

Next, move onto your HTML file where your visitors fill in the form, and
make sure the code below is included.

<form action="/formmail/formmail.cgi" method="post">
//Make sure this is the correct path to your FormMail script.

<input type='hidden' name="recipient" value="(e-mail address removed)"/>
//Make sure this is the e-mail address you are sending the details to.

<input type='hidden' name="subject" value="Form Results"/>
//Replace the value with the one you want the subject of the email results
to be.

<input type='hidden' name="required" value=""/>
//Add any field names the visitor has to fill in for the form to work.

<input type='hidden' name="redirect" value="done.html">
//Enter the location of the "thank you" HTML page here.


Can someone tell me where I need to include this text.

Any help provided would be greatly appreciated.

James
 
R

Ronx

Comments inline below.

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/




Hello,

I am hoping that someone may be able to help me as I am totally stuck

I have a limited understanding of website design and computing. To date I
have managed to build a website using microsoft front page 2003 and have
published this site, with my hosting being provided by 123-reg.co.uk

Unfortnuately I am now totally stuck.

I have included a form on my site which visitors complete when visiting my
site.
However I cannot access/obtain the information provided by my visitors.

I would like this information sent to me via email.

The support section of my hosting providers web site says that I need to
download a formmail script - and provides the following guidance

You will need to download the FormMail Script. This can be found at "Matts
Script Archive ".


Make sure the formmail script you download is at least version 1.92 or
later. Earlier versions are not secure, and should be avoided.

Next, edit the FormMail file in a text editor (e.g. Notepad) and make sure
the top of the file is correct.....

I have downloaded the script and have edited it as per the guidance provided.

However, at this point I am now lost. The next section of the guidance states:

"This file can now be saved and uploaded to your website. Make sure you
upload the file in ASCII/text mode and NOT in binary mode. Also, ensure it
has read and execute permissions (755) for user group and all, as well as
write permissions for the user. "

I do not understand what the above paragraph means - particularly in
relation to uploading the file to me site - can anyone help me.


I wrote this in October 2004.
---------------
This applies to Unix Servers:


On both the server and your local copy of the web convert the cgi folder
to
subwebs. This allows the safe use of FTP. Never open the cgi folders in
FrontPage again.


Perl/cgi scripts should be uploaded with a third party FTP client, such
as
cuteFTP, WSFTP etc. Set the client to treat the script files as ASCII
text,
not as binaries. Note that FrontPage will always treat .cgi, .pl and .pm
files as binaries (FP2003 can be set to use ASCII on these extensions,
but
it is a manual setting - Tools->Options->FTP tag and add the appropriate
extensions).


When the files are uploaded, use the CHMOD function in the FTP client to
check the attributes on each file are set to 755:
Owner Read Write Execute
Group Read Execute
Others Read Execute


Some servers do not need the CHMOD operation, but most do.


The major difference between Unix and Windows text files is the EOL
character -
Windows uses the combination CRLF, whereas UNIX uses the single
character LF
(I think).
The extra CR in a Windows file "confuses" the Perl interpreter, and
causes
errors.

-----------------------
Actual instructions for using the FTP client depend on which one you use
- I have WS_FTP Home, where the CHMOD command is at
File->Operations->FTP Commands->CHMOD. Click (highlight) the uploaded
file before using CHMOD.

The guidance then states

Next, move onto your HTML file where your visitors fill in the form, and
make sure the code below is included.

<form action="/formmail/formmail.cgi" method="post">
//Make sure this is the correct path to your FormMail script.

<input type='hidden' name="recipient" value="(e-mail address removed)"/>
//Make sure this is the e-mail address you are sending the details to.

<input type='hidden' name="subject" value="Form Results"/>
//Replace the value with the one you want the subject of the email results
to be.

<input type='hidden' name="required" value=""/>
//Add any field names the visitor has to fill in for the form to work.

<input type='hidden' name="redirect" value="done.html">
//Enter the location of the "thank you" HTML page here.


Can someone tell me where I need to include this text.


These are hidden form fields that should go anywhere in the form,
between <form...> and </form> in code view.
The best place would be immediately after the <form...> tag, or
immediately before the </form> tag.

If you right click anywhere in the form, choose Form Properties.
Select "Send to Other" and "Custon ISAPI, NSAPI, CGI or ASP Script
Click Options button
In Action, type the relative path to your formmail script, example
formmail/formmail.cgi (in my opinion, change the name to anything else
- spam-bots look for formmail.cgi and formmail.pl.
In Method type POST
Click OK
In Advanced, add the hidden fields and values as detailed above.
Click OK
Click OK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top