Forms

J

Judy

I changed a template to add one line texts. It all shows on web page, but
when I use the submit button at the button they do not submit the ones I
added?
 
R

Ronx

Are the form fields you added in the same form as the submit buttons? Check
in code view that the entire form is between tags
<form...>
and
</form>
and that there are no other <form... or </form> tags. (You cannot nest
forms in HTML if you want them to work)

If you give a link to the page, we will be able to tell what is wrong
without guessing.
--
Ron Symonds
Microsoft MVP (Expression)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
R

Ronx

You did not say which page is giving the problem, but I would be surprised
if you received any data at all from toc.htm

Element names cannot contain spaces or other non-alphanumeric characters
apart from underline. This applies to names given to forms and form fields.
In toc.htm, in the <form tag, change:
name="On Line Quote" to name="OnLineQuote" or to name="On_Line_Quote"

Also change (in the field labelled "Name") NAME="Contact
Information_FullName1" to NAME="Contact_Information_FullName1"

Change
NAME="Additonal Details/Comments" to
NAME="Additonal_Details_Comments"

Do the same (that replace the spaces and other invalid characters) in every
other form field in the page. While doing so, rename the fields with names
that actually have some relevant meaning.

Finally (and nothing to do with the problem) a paragraph containing a single
non-breaking space
(<p>& nbsp;</p> without the space between & and n) will provide exactly the
same amount of vertical space as a paragraph containing a hundred
consecutive non breaking spaces. Leaning on the space bar produces large
numbers of non-breaking spaces which are unnecessary and may cause
left/right scrolling problems when text size is adjusted. The paragraph in
question is in your top border (_borders/top.htm) between logo and
navigation bar.

--
Ron Symonds
Microsoft MVP (Expression)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
R

Ronx

oving%20Supplies.htm contains at least 17 forms - thats 1 form for each
field in the tables, plus 1 form for the address details.

Open the page in Code view.

First - and this is VERY IMPORTANT - remove spaces from the field names.
Spaces in field names break the form.
For example,
<input type="text" name="Stretch Wrap" size="20">
should be
<input type="text" name="Stretch_Wrap" size="20">

Do this for EVERY field.



Second - remove all tags like </form>, except the last one. That is, remove
the first 16 </form> tags



Third - remove all tags that start <form except the first one. That is,
remove the last 16 tags that start <form

Fourth - Remove all code from the page that resembles this - EXCEPT the
first block

<!--webbot bot="SaveResults" U-File="_private/form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE"
B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE"
S-Email-Address="(e-mail address removed)"
B-Email-Label-Fields="TRUE" S-Builtin-Fields
startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="1"><!--webbot
bot="SaveResults" endspan i-checksum="43406" -->

(I have changed the email address in this post to reduce spam)


Fifth - Highlight that first <form tag and code block described above and
move it to between


<p>Please fill in what you would like quoted:</p>

and

<h3>MOVING BOXES:</h3>



Sixth, remove the name attribute from the reset button - this must not be
the same as for the submit button, and is not required


Finally, in Form properties add a subject for the email -
right click in the Form in design view,
Choose Form Properties
Click Options button
On the e-mail results tag, add a Subject line and add reply-to line.
Click OK, click OK and save the page.


I have tested the edited page and it works on *my* system. A copy of the
page is at
http://www.rxs-enterprises.org/tests/pages/moving_supplies.htm
Note that this will probably give an error if you try it on MY server - my
host does not support email through the FrontPage extensions., but the code
is as it should be.

Also, remove spaces from all your page and folder names - spaces break
links. Spaces break forms. Spaces are not your friends.
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
J

Judy

thanks for all the help. How do I get rid of the Front Page form results
showing on the web?
 
R

Ronx

Change this:

<form method="POST"
<!--webbot bot="SaveResults" startspan
U-File="_private/form_results.txt" S-Format="TEXT/CSV"
S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
S-Email-Format="TEXT/PRE"
S-Email-Address="(e-mail address removed)"
B-Email-Label-Fields="TRUE" S-Builtin-Fields
action="_vti_bin/shtml.exe/Moving%20Supplies.htm" onsubmit="return
FrontPage_Form1_Validator(this)" name="FrontPage_Form1"
webbot-action="--WEBBOT-SELF--" language="JavaScript" --><!--webbot
bot="SaveResults" S-Email-Format="TEXT/PRE"
S-Email-Address="(e-mail address removed)"
B-Email-Label-Fields="TRUE"
B-Email-ReplyTo-From-Field="TRUE" S-Email-ReplyTo="Moving boxes"
B-Email-Subject-From-Field="TRUE" S-Email-Subject="Moving boxes"
S-Builtin-Fields startspan -->


to

<form method="POST" action="--WEBBOT-SELF--" onsubmit="return
FrontPage_Form1_Validator(this)" name="FrontPage_Form1"
language="JavaScript" -->
<!--webbot bot="SaveResults" U-File="_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
S-Email-Format="TEXT/PRE" S-Email-Address="(e-mail address removed)"
B-Email-Label-Fields="TRUE" B-Email-ReplyTo-From-Field="TRUE"
S-Email-ReplyTo="Email" B-Email-Subject-From-Field="FALSE"
S-Email-Subject="Moving boxes" S-Builtin-Fields -->


Then change this:

<p>
<input type="SUBMIT" value="Submit Request" name="Moving Supplies">
<input
type="RESET" value="Reset Form" </p>


to


<p>
<input type="SUBMIT" value="Submit Request" name="Moving Supplies">
<input
type="RESET" value="Reset Form"> </p>


Then right click anywhere in the form and choose Form Properties. Change
the email address to whatever it should be. click OK


Then rename ALL your pages and files with names that do not contain spaces.
All the field names have been renamed correctly.
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 

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