frontpage inserts </form> by itself

  • Thread starter Jesper Fjølner
  • Start date
J

Jesper Fjølner

I have a form starting with:
<form method='get' action'page.asp'>
and then quite a bit of code
and then </form>

But now, when I save the file, FP insert </form> right after starting the
form thus ending it immidiatly. Due to this the submit-buttons which are
further down the page don't work.
Why does it insert the </form> by itself when I save the page?

Jesper
 
J

Jesper Fjølner

But now said:
form thus ending it immidiatly. Due to this the submit-buttons which are
further down the page don't work.
Why does it insert the </form> by itself when I save the page?

I think I have it solved. It seems it had to do with a nesting issue around
a <table>.

Jesper
 
K

Kevin Spencer

Hi Jesper,

For future reference, while some browsers will allow some element
overlapping, it is best to avoid it completely. By element overlapping, I
mean, for example:

<form>
<table>
<tr>
<td></td>
<tr>
</form>
</table>

.... where the form begins outside the table, and ends inside the table.
There are some rather complex rules regarding this in older HTML
specifications, but the XHTML specification, for example, simply doesn't
allow any of it. Nesting (elements inside other lements) is okay, as long as
elements do not overlap. If you stick with this convention, you won't go
wrong.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
M

Murray

There are some rather complex rules regarding this in older HTML
specifications, but the XHTML specification, for example, simply doesn't
allow any of it.

HTML 4.01/4/3 doesn't allow it either. I am curious which older specs you
are referring to?
 
K

Kevin Spencer

Hi Murray,

I'd rather not say. I've had enough controversies along these lines lately.
;-)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
A

AMysticWeb

Also, make sure "Automatically enclose form fields within a form" is
unchecked.

To access this in 2K , '02 & '03 Tools >> Page Options >> General tab.

Just be sure to start an FP form with Insert >> Form >> Form

Mike Smith,

http://FrontPageForms.com
FrontPage Form Tutorials
& Form Script Examples
 

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