Forums

This topic is locked

form problems

Posted 20 Mar 2007 19:26:02
1
has voted
20 Mar 2007 19:26:02 Alex Chevchenko posted:
i have a form that i used on a site and i copied some of the from boxes and makes to a diferent side and i added some...after that the nce that i copied were yellow boxes and the once tha i added are white oxes does anyone have any ideas? the web site is

www.businesstechnicalsolutions.com

Replies

Replied 21 Mar 2007 16:11:07
21 Mar 2007 16:11:07 Alan C replied:
there is a syntax error in your html on the form action line

Replied 23 Mar 2007 19:49:19
23 Mar 2007 19:49:19 Alex Chevchenko replied:
can you tell me the correct syntex...or where to find it for a form
Thank You
Replied 24 Mar 2007 18:41:05
24 Mar 2007 18:41:05 Alan C replied:
from your page

<pre id=code><font face=courier size=2 id=code> &lt;form action="/gdform.asp" onsubmit="MM_validateForm('name','','R','zip','','NisNum','phone','','R','e-mail','','RisEmail');return document.MM_returnValue"&gt; &lt;input type=hidden name="redirect" value="&lt;a href="../thanks.html"&gt;Business Tachnical Solutions&lt;/a&gt;"&gt;</font id=code></pre id=code>

hidden should be enclosed in double quotes

and

<pre id=code><font face=courier size=2 id=code> value="&lt;a href="../thanks.html"&gt;Business Tachnical Solutions&lt;/a&gt;"&gt;</font id=code></pre id=code>

should read

<pre id=code><font face=courier size=2 id=code> value=&lt;a href="../thanks.html"&gt;Business Tachnical Solutions&lt;/a&gt;</font id=code></pre id=code>

what is happening there is that the value is being taken as just the first part of the url, so you are getting the Business Tachnical [sic] showing above the box.

Hope I've got that code right, I'm away from home and short of time, try that and see.

A good check is to get firefox, then install html tidy extension, and the web developer extension - you will find them with a search, then you can view source and see any suspect lines hightlighted and get them tidied up by the software.

Hope that helps

Replied 27 Mar 2007 23:37:26
27 Mar 2007 23:37:26 Alan C replied:
I had a look at the revised page, it looked ok in FF, but when I tool a look in IE7 your top menu appeared - that was strange, so I had a look with Opera but no sign of the top menus there either. So there could be something unexpected in your template.

When I saved all the files with FF and then opened your index file with DW I got this message

<pre id=code><font face=courier size=2 id=code> Line 6 Col 88 : Moved invalidly placed mmtinstance:fileinstance tag to be outside of head tag
</font id=code></pre id=code>

without wading through the code in detail I can't see anything obvious to change - there are a couple of things like spaces in filenames but that doesn't usually stop the page from rendering. Your CSS validates.

The W3C html validator says . . .

<pre id=code><font face=courier size=2 id=code> Error Line 40 column 217: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

...me="redirect" value="../thanks.html"/&gt;

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "&lt;p&gt;" or "&lt;table&gt;" inside an inline element (such as "&lt;a&gt;", "&lt;span&gt;", or "&lt;font&gt;".

</font id=code></pre id=code>

so I suspect that's where to start, that looks like the line that sends the submitter to the thank_you page.

I'm not sure about the yellow boxes that you mentioned in your pm, when I view in FF and IE7 I see white boxes, and in Opera yellow outlines around a couple of the boxes, that's caused by a 'focus' mechanism in opera so it's not something that can easily be got rid of
Replied 28 Mar 2007 03:35:29
28 Mar 2007 03:35:29 Alex Chevchenko replied:
hey thanks alot it helped

Reply to this topic