Subject:Identifying form fields after form submission Author:steven matthews Date:01 Apr 2007 03:22 PM
I am trying to generate an ordered list where each <li> member contains some text (a question) and a an <input /> field.
The problem is that I need to be able to identify these <input /> fields when the form is submitted. I am using
<xsl:variable name = "Question_ID" ><xsl:value-of select="Q_ID"/></xsl:variable> but I am not sure if this correct since I know that
you cannot change a declared XSL variable once it is set. Here is the code ...
<form
class = "short"
name="activityform"
action=""
method="POST"
onsubmit_="return true">
<ol>
<xsl:for-each select="short_answer">
<!-- display questions as an ordered list -->
<li><label><xsl:value-of select="question"/></label>
<xsl:variable name = "Question_ID" ><xsl:value-of select="Q_ID"/></xsl:variable>
<input class = "" name = "{$Question_ID}" type = "text" size = "80" value = "" /></li><br /><br />