[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: submit button and passing values

Subject: RE: submit button and passing values
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 21 Nov 2002 12:41:18 +0200
button go to url
Hi,

> I need help with the following:
> 
> I have submit button which should go to the URL, which the 
> corresponds to
> the :
> <xsl:value-of select="UrlTag"/>
> 
> Some code:
> 
> <form><xsl:attribute name="action"><xsl:value-of
> select="UrlTag"/></xsl:attribute>
> 	<input type="hidden" name="name"><xsl:attribute 
> name="value"><xsl:value-of
> select="nameTag"/></xsl:attribute></input>
> 	<input type="submit" value="Go To Link"></input>
> </form>
> 
> Also I am passing a hidden value to the URL, when the button 
> is pressed,
> which the person should not able see in the URL such as the 
> POST method.

This is basically an XHTML problem: the submit input should have a name attribute.

Other than that, you can rewrite you stylesheet fragment to

<form action="{UrlTag}" method="post">
  <input type="hidden" name="name" value="{nameTag}" />
  <input type="submit" name="submitname" value="Go To Link" />
</form>

for readability.

Jarno - Funker Vogt: Subspace... ahh, the nostalgia...

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.