xsl-list
[Top] [All Lists]

Re: Pass variables through URL

2004-10-17 12:50:17
I did this:

<xsl:element name='img'>
        <xsl:attribute name='src'>
                <xsl:text>./php/chart_age.php?age1=</xsl:text>
                <xsl:value-of select='$age1'/>
                <xsl:text>&amp;age2=</xsl:text>
                <xsl:value-of select='$age2'/>
                <xsl:text>&amp;age3=</xsl:text>
                <xsl:value-of select='$age3'/>
                <xsl:text>&amp;age4=</xsl:text>
                <xsl:value-of select='$age4'/>
                <xsl:text>&amp;age5=</xsl:text>
                <xsl:value-of select='$age5'/>
                <xsl:text>&amp;age6=</xsl:text>
                <xsl:value-of select='$age6'/>
                <xsl:text>&amp;age7=</xsl:text>
                <xsl:value-of select='$age7'/>
                <xsl:text>&amp;age8=</xsl:text>
                <xsl:value-of select='$age8'/>
        </xsl:attribute>
</xsl:element>

But in PHP the variables don't have values. So I guess
the variables didn't get passed. Any thing wrong with
the code?




--- "Werner, Wolfgang" <mail(_at_)wolfgang-werner(_dot_)net>
wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

this is a possible alternative:

<xsl:element name='img'>
      <xsl:attribute name='src'>
              <xsl:text>./php/chart_age.php?age1=</xsl:text>
              <xsl:value-of select='$age1'/>

              ...
      </xsl:attribute>
</xsl:element>


Regards,
Wolfgang

Jen Jiang wrote:
| Here's how I pass age1,age2,age3 in my xslt file.
I'm
| not sure if this is the right way to do it.
|
| <img
|

src="./php/chart_age.php?age1={$age1}&amp;age2={$age2}&amp;age3={$age3}"/>
|
|
|
| Thanks,
|
|
|
|             
| _______________________________
| Do you Yahoo!?
| Declare Yourself - Register online to vote today!
| http://vote.yahoo.com
|
|

--+------------------------------------------------------------------
| XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
| To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
| or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
| --+--
|
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird -
http://enigmail.mozdev.org


iD8DBQFBcskjqjaicDyx8o8RAifEAJ9R1WLeO4oTg3k+3eNFzh8/1wBIFwCfVuCs
sPCtPBSQxAeiUy5hWCDOHjQ=
=8NIr
-----END PGP SIGNATURE-----


--+------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com