Passing parameters through HTML buttons



Is there a way to do this?


This is what I currently have:



<xsl:element name="a">
<xsl:attribute name="href">InfoServlet?name=<xsl:value-of select="$vPrev_id"/></xsl:attribute>Previous Event
</xsl:element>


Is there a way to make this a button instead of a text link? I've tried a few things but can't seem to get it to work. I've tried this for example:



<form action="InfoServlet">
<input class="btn btn-default btn-lg" type="submit" value="View Reviews"/>
<xsl:attribute>InfoServlet?name=<xsl:value-of select="$name"/></xsl:attribute>
</form>

No comments:

Post a Comment