Forum Moderators: open

Message Too Old, No Replies

Forms and Divs - data not submitting

Forms, Divs, not submitting

         

enigma_b17

2:08 pm on Jul 29, 2008 (gmt 0)

10+ Year Member



Howdi doo all,

Just got a quick query for anyone who can answer it :P

Essentially, I am trying to construct a form using DIV's within a form.

I think its a problem with nested div's, as it works fine If i remove the div's.

<xsl:template name="test">
<form>
<div>
<div>
<div><input type="text" value="test" /></div>
<div><input type="submit" value="Submit" /></div>
</div>
</div>
</form>
</xsl:template>

so I have the above xsl template, which is then being called by another xsl-template and getting inserted inside another div.

Now I have another one which looks more or less the same as the above, except uses a table instead of the 2nd inner div and child divs, which works fine, however using all div's means that the form will get submitted, but none of the fields do.

Has anyone come across this before?

enigma_b17

2:17 pm on Jul 29, 2008 (gmt 0)

10+ Year Member



ok never mind....

problem solved.

apparently forms do not like submitting unless you give elements a name attribute, aswhere I was going for the id approach :P